@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap);
/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

*, ::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 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; /* 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: JetBrains Mono, Fira Code, Consolas, 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;
}
  /* ── Root Variables ──────────────────────────── */
  :root {
    --ml-primary: #6366f1;
    --ml-primary-hover: #4f46e5;
    --ml-primary-light: #eef2ff;
    --ml-primary-rgb: 99, 102, 241;

    --ml-success: #10b981;
    --ml-warning: #f59e0b;
    --ml-danger: #ef4444;

    --ml-surface: #ffffff;
    --ml-surface-secondary: #f9fafb;
    --ml-surface-tertiary: #f3f4f6;
    --ml-border: #e5e7eb;
    --ml-border-light: #f3f4f6;

    --ml-text: #111827;
    --ml-text-secondary: #6b7280;
    --ml-text-tertiary: #9ca3af;

    --ml-radius-sm: 8px;
    --ml-radius: 10px;
    --ml-radius-lg: 12px;
    --ml-radius-xl: 16px;

    --ml-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --ml-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.03);
    --ml-shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -2px rgba(0,0,0,0.04);
    --ml-shadow-lg: 0 8px 30px -6px rgba(0,0,0,0.1), 0 2px 8px -2px rgba(0,0,0,0.04);
    --ml-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);

    --ml-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ml-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ml-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html.dark {
    --ml-primary-light: rgba(99, 102, 241, 0.12);
    --ml-surface: #1f2937;
    --ml-surface-secondary: #111827;
    --ml-surface-tertiary: #374151;
    --ml-border: #374151;
    --ml-border-light: #4b5563;
    --ml-text: #f3f4f6;
    --ml-text-secondary: #9ca3af;
    --ml-text-tertiary: #6b7280;

    --ml-shadow-xs: 0 1px 2px rgba(0,0,0,0.15);
    --ml-shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px -1px rgba(0,0,0,0.15);
    --ml-shadow-md: 0 4px 12px -2px rgba(0,0,0,0.3), 0 2px 6px -2px rgba(0,0,0,0.2);
    --ml-shadow-lg: 0 8px 30px -6px rgba(0,0,0,0.4), 0 2px 8px -2px rgba(0,0,0,0.2);
    --ml-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.5);
    --ml-chart-card-bg: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    --ml-chart-card-border: rgba(99, 102, 241, 0.08);
    --ml-chart-card-shadow: 0 2px 8px rgba(99,102,241,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
    --ml-chart-card-bg: linear-gradient(145deg, #1e293b 0%, #151d2e 100%);
    --ml-chart-card-border: rgba(148, 163, 184, 0.07);
    --ml-chart-card-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  }

  html {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color var(--ml-transition-slow), color var(--ml-transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  html.dark {
    background-color: #111827;
  }

  body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
      'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.011em;
  }

  html.dark body {
    background-color: #111827;
    color: #f3f4f6;
  }
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.-inset-4 {
  inset: -1rem;
}
.inset-0 {
  inset: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.-top-2 {
  top: -0.5rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-full {
  bottom: 100%;
}
.left-0 {
  left: 0px;
}
.left-1\/2 {
  left: 50%;
}
.left-2\.5 {
  left: 0.625rem;
}
.left-3 {
  left: 0.75rem;
}
.right-0 {
  right: 0px;
}
.top-0 {
  top: 0px;
}
.top-1\/2 {
  top: 50%;
}
.top-full {
  top: 100%;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.m-0 {
  margin: 0px;
}
.mx-0\.5 {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-1\.5 {
  margin-left: 0.375rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-0\.5 {
  margin-right: 0.125rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-0\.5 {
  height: 0.125rem;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.h-\[220px\] {
  height: 220px;
}
.h-full {
  height: 100%;
}
.max-h-\[224px\] {
  max-height: 224px;
}
.min-h-\[60vh\] {
  min-height: 60vh;
}
.min-h-screen {
  min-height: 100vh;
}
.w-1 {
  width: 0.25rem;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-44 {
  width: 11rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-\[70\%\] {
  width: 70%;
}
.w-auto {
  width: auto;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[120px\] {
  min-width: 120px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[60px\] {
  min-width: 60px;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-\[1400px\] {
  max-width: 1400px;
}
.max-w-\[160px\] {
  max-width: 160px;
}
.max-w-\[400px\] {
  max-width: 400px;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  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));
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  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));
}
.rotate-180 {
  --tw-rotate: 180deg;
  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));
}
@keyframes ping {

  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.list-disc {
  list-style-type: disc;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.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;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-0 {
  gap: 0px;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-\[1px\] {
  gap: 1px;
}
.gap-x-6 {
  column-gap: 1.5rem;
}
.gap-y-3 {
  row-gap: 0.75rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(243 244 246 / 1);
  border-color: rgb(243 244 246 / var(--tw-divide-opacity, 1));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 16px;
}
.rounded-\[1px\] {
  border-radius: 1px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 12px;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-4 {
  border-width: 4px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-none {
  border-style: none;
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / 1);
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / 1);
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-emerald-100\/60 {
  border-color: rgb(209 250 229 / 0.6);
}
.border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / 1);
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
}
.border-emerald-200\/60 {
  border-color: rgb(167 243 208 / 0.6);
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / 1);
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-gray-100\/60 {
  border-color: rgb(243 244 246 / 0.6);
}
.border-gray-100\/80 {
  border-color: rgb(243 244 246 / 0.8);
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / 1);
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-200\/50 {
  border-color: rgb(229 231 235 / 0.5);
}
.border-gray-200\/60 {
  border-color: rgb(229 231 235 / 0.6);
}
.border-gray-200\/80 {
  border-color: rgb(229 231 235 / 0.8);
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / 1);
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / 1);
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}
.border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / 1);
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1));
}
.border-purple-200\/80 {
  border-color: rgb(233 213 255 / 0.8);
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / 1);
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-500\/15 {
  border-color: rgb(239 68 68 / 0.15);
}
.border-transparent {
  border-color: transparent;
}
.border-white\/5 {
  border-color: rgb(255 255 255 / 0.05);
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / 1);
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}
.border-t-gray-900 {
  --tw-border-opacity: 1;
  border-top-color: rgb(17 24 39 / 1);
  border-top-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-\[\#f4f5f7\] {
  --tw-bg-opacity: 1;
  background-color: rgb(244 245 247 / 1);
  background-color: rgb(244 245 247 / var(--tw-bg-opacity, 1));
}
.bg-amber-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / 1);
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / 1);
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / 1);
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / 1);
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 197 253 / 1);
  background-color: rgb(147 197 253 / var(--tw-bg-opacity, 1));
}
.bg-blue-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(96 165 250 / 1);
  background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / 1);
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-500\/20 {
  background-color: rgb(59 130 246 / 0.2);
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-cyan-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(103 232 249 / 1);
  background-color: rgb(103 232 249 / var(--tw-bg-opacity, 1));
}
.bg-cyan-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(6 182 212 / 1);
  background-color: rgb(6 182 212 / var(--tw-bg-opacity, 1));
}
.bg-cyan-500\/20 {
  background-color: rgb(6 182 212 / 0.2);
}
.bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / 1);
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.bg-emerald-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(110 231 183 / 1);
  background-color: rgb(110 231 183 / var(--tw-bg-opacity, 1));
}
.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / 1);
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / 1);
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-emerald-500\/20 {
  background-color: rgb(16 185 129 / 0.2);
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-100\/80 {
  background-color: rgb(243 244 246 / 0.8);
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / 1);
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / 1);
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / 1);
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-50\/50 {
  background-color: rgb(249 250 251 / 0.5);
}
.bg-gray-50\/80 {
  background-color: rgb(249 250 251 / 0.8);
}
.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / 1);
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-gray-500\/20 {
  background-color: rgb(107 114 128 / 0.2);
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / 1);
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / 1);
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / 1);
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / 1);
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}
.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / 1);
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}
.bg-indigo-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(165 180 252 / 1);
  background-color: rgb(165 180 252 / var(--tw-bg-opacity, 1));
}
.bg-indigo-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(129 140 248 / 1);
  background-color: rgb(129 140 248 / var(--tw-bg-opacity, 1));
}
.bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / 1);
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1));
}
.bg-indigo-50\/60 {
  background-color: rgb(238 242 255 / 0.6);
}
.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / 1);
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}
.bg-indigo-500\/20 {
  background-color: rgb(99 102 241 / 0.2);
}
.bg-indigo-500\/5 {
  background-color: rgb(99 102 241 / 0.05);
}
.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / 1);
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}
.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / 1);
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-orange-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(253 186 116 / 1);
  background-color: rgb(253 186 116 / var(--tw-bg-opacity, 1));
}
.bg-orange-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / 1);
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}
.bg-orange-500\/20 {
  background-color: rgb(249 115 22 / 0.2);
}
.bg-purple-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(216 180 254 / 1);
  background-color: rgb(216 180 254 / var(--tw-bg-opacity, 1));
}
.bg-purple-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(192 132 252 / 1);
  background-color: rgb(192 132 252 / var(--tw-bg-opacity, 1));
}
.bg-purple-50\/60 {
  background-color: rgb(250 245 255 / 0.6);
}
.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / 1);
  background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1));
}
.bg-purple-500\/20 {
  background-color: rgb(168 85 247 / 0.2);
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / 1);
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 1);
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / 1);
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / 1);
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-50\/50 {
  background-color: rgb(254 242 242 / 0.5);
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / 1);
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-teal-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(45 212 191 / 1);
  background-color: rgb(45 212 191 / var(--tw-bg-opacity, 1));
}
.bg-teal-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(13 148 136 / 1);
  background-color: rgb(13 148 136 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / 1);
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}
.bg-white\/80 {
  background-color: rgb(255 255 255 / 0.8);
}
.bg-yellow-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / 1);
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}
.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / 1);
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-50\/50 {
  --tw-gradient-from: rgb(239 246 255 / 0.5) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-500 {
  --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-600 {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-cyan-100 {
  --tw-gradient-from: #cffafe var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(207 250 254 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-cyan-500 {
  --tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-400\/25 {
  --tw-gradient-from: rgb(52 211 153 / 0.25) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(52 211 153 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-500 {
  --tw-gradient-from: #10b981 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-500 {
  --tw-gradient-from: #6b7280 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(107 114 128 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-green-50 {
  --tw-gradient-from: #f0fdf4 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(240 253 244 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-indigo-500 {
  --tw-gradient-from: #6366f1 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-indigo-600 {
  --tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-orange-100 {
  --tw-gradient-from: #ffedd5 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 237 213 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-orange-50 {
  --tw-gradient-from: #fff7ed var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 247 237 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-orange-500 {
  --tw-gradient-from: #f97316 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(249 115 22 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-100 {
  --tw-gradient-from: #f3e8ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(243 232 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-50 {
  --tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(250 245 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-500 {
  --tw-gradient-from: #a855f7 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-600 {
  --tw-gradient-from: #9333ea var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-red-50 {
  --tw-gradient-from: #fef2f2 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(254 242 242 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-transparent {
  --tw-gradient-from: transparent var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-white {
  --tw-gradient-from: #fff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-emerald-50\/30 {
  --tw-gradient-to: rgb(236 253 245 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(236 253 245 / 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-emerald-500 {
  --tw-gradient-to: rgb(16 185 129 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #10b981 var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-gray-50\/30 {
  --tw-gradient-to: rgb(249 250 251 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(249 250 251 / 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-purple-50\/30 {
  --tw-gradient-to: rgb(250 245 255 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(250 245 255 / 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-amber-100 {
  --tw-gradient-to: #fef3c7 var(--tw-gradient-to-position);
}
.to-blue-100 {
  --tw-gradient-to: #dbeafe var(--tw-gradient-to-position);
}
.to-blue-100\/50 {
  --tw-gradient-to: rgb(219 234 254 / 0.5) var(--tw-gradient-to-position);
}
.to-blue-600 {
  --tw-gradient-to: #2563eb var(--tw-gradient-to-position);
}
.to-blue-700 {
  --tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
}
.to-gray-600 {
  --tw-gradient-to: #4b5563 var(--tw-gradient-to-position);
}
.to-green-100\/50 {
  --tw-gradient-to: rgb(220 252 231 / 0.5) var(--tw-gradient-to-position);
}
.to-indigo-600 {
  --tw-gradient-to: #4f46e5 var(--tw-gradient-to-position);
}
.to-orange-100\/50 {
  --tw-gradient-to: rgb(255 237 213 / 0.5) var(--tw-gradient-to-position);
}
.to-purple-100\/50 {
  --tw-gradient-to: rgb(243 232 255 / 0.5) var(--tw-gradient-to-position);
}
.to-purple-600 {
  --tw-gradient-to: #9333ea var(--tw-gradient-to-position);
}
.to-red-100\/50 {
  --tw-gradient-to: rgb(254 226 226 / 0.5) var(--tw-gradient-to-position);
}
.to-red-500 {
  --tw-gradient-to: #ef4444 var(--tw-gradient-to-position);
}
.to-slate-50\/20 {
  --tw-gradient-to: rgb(248 250 252 / 0.2) var(--tw-gradient-to-position);
}
.to-slate-50\/50 {
  --tw-gradient-to: rgb(248 250 252 / 0.5) var(--tw-gradient-to-position);
}
.to-teal-400\/25 {
  --tw-gradient-to: rgb(45 212 191 / 0.25) var(--tw-gradient-to-position);
}
.to-teal-50\/20 {
  --tw-gradient-to: rgb(240 253 250 / 0.2) var(--tw-gradient-to-position);
}
.to-teal-600 {
  --tw-gradient-to: #0d9488 var(--tw-gradient-to-position);
}
.to-transparent {
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
}
.fill-gray-200 {
  fill: #e5e7eb;
}
.stroke-gray-200 {
  stroke: #e5e7eb;
}
.stroke-gray-300 {
  stroke: #d1d5db;
}
.p-0 {
  padding: 0px;
}
.p-0\.5 {
  padding: 0.125rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pr-0\.5 {
  padding-right: 0.125rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pt-1\.5 {
  padding-top: 0.375rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-5 {
  padding-top: 1.25rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-mono {
  font-family: JetBrains Mono, Fira Code, Consolas, monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12\.5px\] {
  font-size: 12.5px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[16px\] {
  font-size: 16px;
}
.text-\[20px\] {
  font-size: 20px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-feature-settings: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-none {
  line-height: 1;
}
.leading-snug {
  line-height: 1.375;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / 1);
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}
.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / 1);
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / 1);
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / 1);
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 1);
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / 1);
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / 1);
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.text-cyan-600 {
  --tw-text-opacity: 1;
  color: rgb(8 145 178 / 1);
  color: rgb(8 145 178 / var(--tw-text-opacity, 1));
}
.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / 1);
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}
.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / 1);
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / 1);
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / 1);
  color: rgb(6 95 70 / var(--tw-text-opacity, 1));
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / 1);
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / 1);
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 1);
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / 1);
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / 1);
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / 1);
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / 1);
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-green-900 {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / 1);
  color: rgb(20 83 45 / var(--tw-text-opacity, 1));
}
.text-indigo-300 {
  --tw-text-opacity: 1;
  color: rgb(165 180 252 / 1);
  color: rgb(165 180 252 / var(--tw-text-opacity, 1));
}
.text-indigo-400 {
  --tw-text-opacity: 1;
  color: rgb(129 140 248 / 1);
  color: rgb(129 140 248 / var(--tw-text-opacity, 1));
}
.text-indigo-500 {
  --tw-text-opacity: 1;
  color: rgb(99 102 241 / 1);
  color: rgb(99 102 241 / var(--tw-text-opacity, 1));
}
.text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / 1);
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}
.text-orange-500 {
  --tw-text-opacity: 1;
  color: rgb(249 115 22 / 1);
  color: rgb(249 115 22 / var(--tw-text-opacity, 1));
}
.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / 1);
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / 1);
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-orange-900 {
  --tw-text-opacity: 1;
  color: rgb(124 45 18 / 1);
  color: rgb(124 45 18 / var(--tw-text-opacity, 1));
}
.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / 1);
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-purple-500 {
  --tw-text-opacity: 1;
  color: rgb(168 85 247 / 1);
  color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}
.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / 1);
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}
.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / 1);
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}
.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / 1);
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}
.text-red-300 {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / 1);
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / 1);
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / 1);
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / 1);
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / 1);
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-red-900 {
  --tw-text-opacity: 1;
  color: rgb(127 29 29 / 1);
  color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / 1);
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / 1);
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / 1);
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}
.underline {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.placeholder-gray-400::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-placeholder-opacity, 1));
}
.opacity-100 {
  opacity: 1;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-90 {
  opacity: 0.9;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-blue-500\/30 {
  --tw-shadow-color: rgb(59 130 246 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-blue-500\/40 {
  --tw-shadow-color: rgb(59 130 246 / 0.4);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-cyan-500\/30 {
  --tw-shadow-color: rgb(6 182 212 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-emerald-100\/50 {
  --tw-shadow-color: rgb(209 250 229 / 0.5);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-emerald-500\/30 {
  --tw-shadow-color: rgb(16 185 129 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-gray-100\/50 {
  --tw-shadow-color: rgb(243 244 246 / 0.5);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-gray-500\/30 {
  --tw-shadow-color: rgb(107 114 128 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-indigo-500\/30 {
  --tw-shadow-color: rgb(99 102 241 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-orange-500\/30 {
  --tw-shadow-color: rgb(249 115 22 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-purple-500\/30 {
  --tw-shadow-color: rgb(168 85 247 / 0.3);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.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);
}
.blur-3xl {
  --tw-blur: blur(64px);
  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);
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  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, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 {
  transition-duration: 100ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.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);
}

/* ============================================
   Design System — Media Luna
   Single source of truth for the global theme.
   ============================================ */

/* ── Google Font ─────────────────────────────── */

code {
  font-family: 'JetBrains Mono', 'Fira Code', source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@keyframes loadingProgress {
  0% {
    width: 20%;
    transform: translateX(-100%);
  }
  50% {
    width: 60%;
  }
  100% {
    width: 20%;
    transform: translateX(400%);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.2s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.3s ease-out;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Thinner scrollbar variant */
.dark-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.dark-scrollbar::-webkit-scrollbar-track { background: transparent; }
.dark-scrollbar::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 10px; }
.dark-scrollbar::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* ============================================
   Ant Design — Input / Select / Picker
   ============================================ */

.ant-input,
.ant-input-affix-wrapper,
.ant-select-selector,
.ant-picker {
  border-radius: 10px !important;
  border-radius: var(--ml-radius) !important;
  border: 1px solid #e5e7eb !important;
  border: 1px solid var(--ml-border) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  box-shadow: var(--ml-shadow-xs) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
  font-size: 14px !important;
}

.ant-input-affix-wrapper {
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
}

.ant-input-affix-wrapper > input.ant-input {
  font-size: 14px !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.ant-input-prefix {
  margin-right: 8px !important;
  display: flex !important;
  align-items: center !important;
}

.ant-input-suffix {
  margin-left: 8px !important;
  display: flex !important;
  align-items: center !important;
}

.ant-input:hover,
.ant-input-affix-wrapper:hover,
.ant-select-selector:hover,
.ant-picker:hover {
  border-color: #f3f4f6 !important;
  border-color: var(--ml-border-light) !important;
}

.ant-input:focus,
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused,
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
  border-color: #6366f1 !important;
  border-color: var(--ml-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(var(--ml-primary-rgb), 0.1) !important;
  outline: none !important;
}

/* Large size inputs */
.ant-input-affix-wrapper-lg {
  padding: 0 14px !important;
  min-height: 44px !important;
  height: 44px !important;
}

.ant-input-affix-wrapper-lg > input.ant-input { font-size: 15px !important; }

.ant-input-lg {
  font-size: 15px !important;
  padding: 10px 14px !important;
  min-height: 44px !important;
  height: 44px !important;
}

.ant-select-lg .ant-select-selector {
  min-height: 44px !important;
  height: 44px !important;
  padding: 6px 12px !important;
}

.ant-select-selection-item { line-height: 28px !important; }

/* Dark mode inputs */
html.dark .ant-input,
html.dark .ant-input-affix-wrapper,
html.dark .ant-select-selector,
html.dark .ant-picker {
  background-color: #f3f4f6 !important;
  background-color: var(--ml-surface-tertiary) !important;
  border-color: #e5e7eb !important;
  border-color: var(--ml-border) !important;
  color: #111827 !important;
  color: var(--ml-text) !important;
}

html.dark .ant-input:hover,
html.dark .ant-input-affix-wrapper:hover,
html.dark .ant-select-selector:hover,
html.dark .ant-picker:hover {
  border-color: #f3f4f6 !important;
  border-color: var(--ml-border-light) !important;
}

html.dark .ant-input::placeholder,
html.dark .ant-input-affix-wrapper input::placeholder {
  color: #9ca3af !important;
  color: var(--ml-text-tertiary) !important;
}

html.dark .ant-select-item {
  background-color: #f3f4f6 !important;
  background-color: var(--ml-surface-tertiary) !important;
  color: #111827 !important;
  color: var(--ml-text) !important;
}

html.dark .ant-select-item-option-selected { background-color: #e5e7eb !important; background-color: var(--ml-border) !important; }
html.dark .ant-select-item-option-active { background-color: #e5e7eb !important; background-color: var(--ml-border) !important; }
html.dark .ant-select-dropdown { background-color: #f3f4f6 !important; background-color: var(--ml-surface-tertiary) !important; }

html.dark .ant-select-arrow,
html.dark .ant-input-prefix,
html.dark .ant-input-suffix { color: #9ca3af !important; color: var(--ml-text-tertiary) !important; }

html.dark .ant-input-clear-icon { color: #9ca3af !important; color: var(--ml-text-tertiary) !important; }
html.dark .ant-input-clear-icon:hover { color: #6b7280 !important; color: var(--ml-text-secondary) !important; }

/* ============================================
   Ant Design — Dropdowns & Overlays
   ============================================ */

/* Select dropdown */
.ant-select-dropdown {
  border-radius: 12px !important;
  border-radius: var(--ml-radius-lg) !important;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,0.1), 0 2px 8px -2px rgba(0,0,0,0.04) !important;
  box-shadow: var(--ml-shadow-lg) !important;
  border: 1px solid #e5e7eb !important;
  border: 1px solid var(--ml-border) !important;
}

html.dark .ant-select-dropdown {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15) !important;
  box-shadow: var(--ml-shadow-xl) !important;
}

/* Popover */
html.dark .ant-popover-inner {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15) !important;
  box-shadow: var(--ml-shadow-xl) !important;
}

html.dark .ant-popover-arrow::before,
html.dark .ant-popover-arrow::after { background: #1e293b !important; }
html.dark .ant-popover-title { color: #e5e7eb !important; border-color: rgba(255, 255, 255, 0.08) !important; }
html.dark .ant-popover-inner-content { color: #e5e7eb !important; }

/* Dropdown menu */
html.dark .ant-dropdown-menu {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15) !important;
  box-shadow: var(--ml-shadow-xl) !important;
  border-radius: 12px !important;
  border-radius: var(--ml-radius-lg) !important;
}

html.dark .ant-dropdown-menu-item { color: #e5e7eb !important; }
html.dark .ant-dropdown-menu-item:hover { background: rgba(99, 102, 241, 0.08) !important; }
html.dark .ant-dropdown-menu-item-selected { background: rgba(99, 102, 241, 0.15) !important; }

/* Tooltip */
html.dark .ant-tooltip-inner {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html.dark .ant-tooltip-arrow::before { background: #1e293b !important; }

/* Modal */
html.dark .ant-modal-content {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15) !important;
  box-shadow: var(--ml-shadow-xl) !important;
}

html.dark .ant-modal-header { background: transparent !important; border-color: rgba(255, 255, 255, 0.08) !important; }
html.dark .ant-modal-body { background: transparent !important; }
html.dark .ant-modal-footer { background: transparent !important; border-color: rgba(255, 255, 255, 0.08) !important; }
html.dark .ant-modal-title { color: #111827 !important; color: var(--ml-text) !important; }
html.dark .ant-modal-close { color: #9ca3af !important; color: var(--ml-text-tertiary) !important; }
html.dark .ant-modal-close:hover { color: #111827 !important; color: var(--ml-text) !important; background: rgba(255, 255, 255, 0.08) !important; }

/* ============================================
   Ant Design — Buttons
   ============================================ */

.ant-input-clear-icon { font-size: 12px !important; color: #9ca3af !important; color: var(--ml-text-tertiary) !important; transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important; transition: color var(--ml-transition-fast) !important; }
.ant-input-clear-icon:hover { color: #6b7280 !important; color: var(--ml-text-secondary) !important; }

.ant-btn {
  border-radius: 10px !important;
  border-radius: var(--ml-radius) !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  box-shadow: var(--ml-shadow-xs) !important;
  letter-spacing: -0.01em;
}

.ant-btn:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.03) !important;
  box-shadow: var(--ml-shadow-sm) !important;
}

.ant-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 4px 14px -2px rgba(var(--ml-primary-rgb), 0.45) !important;
}

.ant-btn-dangerous:hover,
.ant-btn-danger:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.4) !important;
}

.ant-btn:not(.ant-btn-primary):not(.ant-btn-dangerous):not(.ant-btn-danger):hover {
  transform: translateY(-1px) !important;
}

/* ============================================
   Ant Design — Search (clean up native widget)
   ============================================ */

.ant-input-search .ant-input-prefix,
.ant-input-search-large .ant-input-prefix,
.ant-input-affix-wrapper .ant-input-prefix { display: none !important; }

.ant-input-search-button,
.ant-input-search > .ant-input-group > .ant-input-group-addon:last-child,
.ant-input-wrapper .ant-input-group-addon { display: none !important; }

.ant-input-search .ant-input-wrapper,
.ant-input-search .ant-input-group { width: 100% !important; }

.ant-input-search.ant-input-affix-wrapper,
.ant-input-search-large.ant-input-affix-wrapper { padding-left: 12px !important; }
.ant-input-affix-wrapper-lg.ant-input-search { padding-left: 14px !important; }

/* ============================================
   Ant Design — Tabs
   ============================================ */

.ant-tabs { color: var(--ant-color-text) !important; }

.ant-tabs-tab {
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
  border-radius: 8px 8px 0 0 !important;
  border-radius: var(--ml-radius-sm) var(--ml-radius-sm) 0 0 !important;
  margin: 0 2px !important;
}

.ant-tabs-tab:hover { color: #6366f1 !important; color: var(--ml-primary) !important; background: #eef2ff !important; background: var(--ml-primary-light) !important; }
.ant-tabs-tab-active { background: transparent !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: #6366f1 !important; color: var(--ml-primary) !important; font-weight: 600 !important; }

.ant-tabs-ink-bar {
  background: #6366f1 !important;
  background: var(--ml-primary) !important;
  height: 2.5px !important;
  border-radius: 2px 2px 0 0 !important;
}

.ant-tabs-content { transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; transition: opacity var(--ml-transition-slow) !important; }
.ant-tabs-content-holder { background: transparent !important; }

.ant-tabs-tabpane { animation: tabFadeIn 0.25s ease-out !important; }

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

html.dark .ant-tabs-tab { color: #d1d5db !important; }
html.dark .ant-tabs-tab:hover { color: #a5b4fc !important; background: rgba(99, 102, 241, 0.08) !important; }
html.dark .ant-tabs-tab-active .ant-tabs-tab-btn { color: #a5b4fc !important; }
html.dark .ant-tabs-ink-bar { background: #818cf8 !important; }

/* ============================================
   Ant Design — Cards  (modern / sharp / shiny)
   ============================================ */

.ant-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border-radius: 12px !important;
  border-radius: var(--ml-radius-lg) !important;
}

.ant-card-hoverable:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1),
              0 2px 6px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
  transform: translateY(-2px) !important;
}

html.dark .ant-card {
  background: linear-gradient(145deg, #1e293b 0%, #151d2e 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.07) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              0 1px 2px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.dark .ant-card-hoverable:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(99, 102, 241, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
}

/* ============================================
   Ant Design — Radio Buttons
   ============================================ */

.ant-radio-button-wrapper {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
  border-radius: 8px !important;
  border-radius: var(--ml-radius-sm) !important;
  border: 1.5px solid #e5e7eb !important;
  border: 1.5px solid var(--ml-border) !important;
  margin: 0 !important;
}

.ant-radio-button-wrapper:hover {
  color: #6366f1 !important;
  color: var(--ml-primary) !important;
  border-color: #6366f1 !important;
  border-color: var(--ml-primary) !important;
}

.ant-radio-button-wrapper-checked {
  background: #6366f1 !important;
  background: var(--ml-primary) !important;
  border-color: #6366f1 !important;
  border-color: var(--ml-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 2px 8px rgba(var(--ml-primary-rgb), 0.3) !important;
}

.ant-radio-button-wrapper-checked:hover {
  border-color: #4f46e5 !important;
  border-color: var(--ml-primary-hover) !important;
}

html.dark .ant-radio-button-wrapper {
  border-color: #e5e7eb !important;
  border-color: var(--ml-border) !important;
  background: #f3f4f6 !important;
  background: var(--ml-surface-tertiary) !important;
  color: #d1d5db !important;
}

html.dark .ant-radio-button-wrapper:hover {
  color: #a5b4fc !important;
  border-color: #818cf8 !important;
}

html.dark .ant-radio-button-wrapper-checked {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #fff !important;
}

/* ============================================
   Ant Design — Form items
   ============================================ */

.ant-form-item { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important; transition: all var(--ml-transition) !important; }

/* ============================================
   Metrics Dashboard — Monitor Selector
   ============================================ */

.metrics-monitor-select .ant-select-selector {
  border-radius: 8px !important;
  border-radius: var(--ml-radius-sm) !important;
  border: 1px solid #e5e7eb !important;
  border: 1px solid var(--ml-border) !important;
  background: #f9fafb !important;
  background: var(--ml-surface-secondary) !important;
  box-shadow: none !important;
  padding: 2px 8px !important;
  height: 34px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition) !important;
}

.metrics-monitor-select:hover .ant-select-selector,
.metrics-monitor-select.ant-select-focused .ant-select-selector {
  border-color: #6366f1 !important;
  border-color: var(--ml-primary) !important;
  background: #ffffff !important;
  background: var(--ml-surface) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(var(--ml-primary-rgb), 0.08) !important;
}

.metrics-monitor-select .ant-select-selection-search-input { height: 30px !important; }
.metrics-monitor-select .ant-select-selection-item { line-height: 30px !important; font-size: 13px !important; font-weight: 500 !important; color: #111827 !important; color: var(--ml-text) !important; }
.metrics-monitor-select .ant-select-arrow { color: #9ca3af !important; color: var(--ml-text-tertiary) !important; font-size: 10px !important; }

/* Dark mode */
html.dark .metrics-monitor-select .ant-select-selector {
  background: rgba(55, 65, 81, 0.5) !important;
  border-color: rgba(75, 85, 99, 0.6) !important;
}

html.dark .metrics-monitor-select:hover .ant-select-selector,
html.dark .metrics-monitor-select.ant-select-focused .ant-select-selector {
  border-color: #6366f1 !important;
  background: rgba(55, 65, 81, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

html.dark .metrics-monitor-select .ant-select-selection-item { color: #e5e7eb !important; }

/* Monitor dropdown */
.metrics-monitor-dropdown {
  border-radius: 12px !important;
  border-radius: var(--ml-radius-lg) !important;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,0.1), 0 2px 8px -2px rgba(0,0,0,0.04) !important;
  box-shadow: var(--ml-shadow-lg) !important;
  border: 1px solid #e5e7eb !important;
  border: 1px solid var(--ml-border) !important;
  padding: 4px !important;
  overflow: hidden !important;
}

.metrics-monitor-dropdown .ant-select-item {
  border-radius: 8px !important;
  border-radius: var(--ml-radius-sm) !important;
  padding: 6px 10px !important;
  margin: 1px 0 !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition: all var(--ml-transition-fast) !important;
}

.metrics-monitor-dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected) { background: #f3f4f6 !important; background: var(--ml-surface-tertiary) !important; }
.metrics-monitor-dropdown .ant-select-item-option-selected { background: #eef2ff !important; background: var(--ml-primary-light) !important; font-weight: 500 !important; }

html.dark .metrics-monitor-dropdown {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.15) !important;
  box-shadow: var(--ml-shadow-xl) !important;
}

html.dark .metrics-monitor-dropdown .ant-select-item-option-active:not(.ant-select-item-option-selected) { background: rgba(255, 255, 255, 0.06) !important; }
html.dark .metrics-monitor-dropdown .ant-select-item-option-selected { background: rgba(99, 102, 241, 0.15) !important; }

/* ============================================
   Theme Transition — Cascading Color Animation
   Only active when .theme-transitioning is on <html>.
   Staggered delays create a wave: sidebar → header → content → cards → text
   ============================================ */

/* Shared transition properties for all transitioning elements */
html.theme-transitioning,
html.theme-transitioning body {
  transition:
    background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ─── Wave 1: Sidebar (0ms delay) ─── */
html.theme-transitioning .sb-root {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border-color     0.4s cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    color            0.4s cubic-bezier(0.4, 0, 0.2, 1) 0ms !important;
}

html.theme-transitioning .sb-nav-item,
html.theme-transitioning .sb-brand-name,
html.theme-transitioning .sb-brand-sub,
html.theme-transitioning .sb-nav-icon,
html.theme-transitioning .sb-divider,
html.theme-transitioning .sb-collapse-btn,
html.theme-transitioning .sb-footer,
html.theme-transitioning .sb-nav-group-btn {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 40ms,
    border-color     0.4s cubic-bezier(0.4, 0, 0.2, 1) 40ms,
    color            0.4s cubic-bezier(0.4, 0, 0.2, 1) 40ms !important;
}

/* ─── Wave 2: Header (80ms delay) ─── */
html.theme-transitioning .layout-header {
  transition:
    background    0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms,
    border-color  0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms !important;
}

html.theme-transitioning .lh-title,
html.theme-transitioning .lh-subtitle,
html.theme-transitioning .lh-user-pill,
html.theme-transitioning .lh-user-name,
html.theme-transitioning .lh-page-icon,
html.theme-transitioning .lh-hamburger {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 110ms,
    border-color     0.4s cubic-bezier(0.4, 0, 0.2, 1) 110ms,
    color            0.4s cubic-bezier(0.4, 0, 0.2, 1) 110ms,
    box-shadow       0.4s cubic-bezier(0.4, 0, 0.2, 1) 110ms !important;
}

/* ─── Wave 3: Main content area (160ms delay) ─── */
html.theme-transitioning .ant-layout,
html.theme-transitioning .bg-gray-50,
html.theme-transitioning .dark\:bg-gray-900 {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 160ms !important;
}

/* ─── Wave 4: Cards, tables, surfaces (220ms delay) ─── */
html.theme-transitioning .stat-card,
html.theme-transitioning .monitor-card,
html.theme-transitioning .ant-card,
html.theme-transitioning .ant-table,
html.theme-transitioning .ant-table-thead > tr > th,
html.theme-transitioning .ant-table-tbody > tr > td,
html.theme-transitioning .ant-modal-content,
html.theme-transitioning .ant-input,
html.theme-transitioning .ant-input-affix-wrapper,
html.theme-transitioning .ant-select-selector,
html.theme-transitioning .ant-picker {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 220ms,
    background       0.4s cubic-bezier(0.4, 0, 0.2, 1) 220ms,
    border-color     0.4s cubic-bezier(0.4, 0, 0.2, 1) 220ms,
    color            0.4s cubic-bezier(0.4, 0, 0.2, 1) 220ms,
    box-shadow       0.4s cubic-bezier(0.4, 0, 0.2, 1) 220ms !important;
}

/* ─── Wave 5: Text, icons, badges, small UI (300ms delay) ─── */
html.theme-transitioning .ant-tag,
html.theme-transitioning .ant-badge,
html.theme-transitioning .ant-btn,
html.theme-transitioning .ant-empty-description,
html.theme-transitioning .ant-pagination-item,
html.theme-transitioning .ant-pagination-item a,
html.theme-transitioning .ant-tabs-tab,
html.theme-transitioning .ant-segmented,
html.theme-transitioning .ant-segmented-item,
html.theme-transitioning h1, html.theme-transitioning h2,
html.theme-transitioning h3, html.theme-transitioning h4,
html.theme-transitioning p,
html.theme-transitioning span,
html.theme-transitioning label {
  transition:
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1) 300ms,
    border-color     0.35s cubic-bezier(0.4, 0, 0.2, 1) 300ms,
    color            0.35s cubic-bezier(0.4, 0, 0.2, 1) 300ms,
    box-shadow       0.35s cubic-bezier(0.4, 0, 0.2, 1) 300ms !important;
}

/* ─── Dropdown (if open during switch) ─── */
html.theme-transitioning .lh-dropdown,
html.theme-transitioning .lhd-identity-name,
html.theme-transitioning .lhd-identity-email,
html.theme-transitioning .lhd-item,
html.theme-transitioning .lhd-divider,
html.theme-transitioning .lh-theme-toggle {
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms,
    border-color     0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms,
    color            0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms,
    box-shadow       0.4s cubic-bezier(0.4, 0, 0.2, 1) 80ms !important;
}
.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  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));
}
.hover\:border-blue-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / 1);
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));
}
.hover\:border-emerald-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(52 211 153 / 1);
  border-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
}
.hover\:border-purple-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(216 180 254 / 1);
  border-color: rgb(216 180 254 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.hover\:bg-blue-50\/50:hover {
  background-color: rgb(239 246 255 / 0.5);
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / 1);
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-100\/80:hover {
  background-color: rgb(243 244 246 / 0.8);
}
.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover\:bg-purple-100\/60:hover {
  background-color: rgb(243 232 255 / 0.6);
}
.hover\:bg-purple-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / 1);
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1));
}
.hover\:from-blue-700:hover {
  --tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:from-indigo-700:hover {
  --tw-gradient-from: #4338ca var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(67 56 202 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:from-purple-700:hover {
  --tw-gradient-from: #7e22ce var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(126 34 206 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-blue-800:hover {
  --tw-gradient-to: #1e40af var(--tw-gradient-to-position);
}
.hover\:to-indigo-700:hover {
  --tw-gradient-to: #4338ca var(--tw-gradient-to-position);
}
.hover\:to-purple-700:hover {
  --tw-gradient-to: #7e22ce var(--tw-gradient-to-position);
}
.hover\:text-blue-600:hover {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-700:hover {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 1);
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-900:hover {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / 1);
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.hover\:text-purple-600:hover {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / 1);
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.hover\:opacity-90:hover {
  opacity: 0.9;
}
.hover\:shadow:hover {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-xl:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-blue-500\/50:hover {
  --tw-shadow-color: rgb(59 130 246 / 0.5);
  --tw-shadow: var(--tw-shadow-colored);
}
.hover\:brightness-95:hover {
  --tw-brightness: brightness(.95);
  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);
}
.focus\:border-blue-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / 1);
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.focus\:border-transparent:focus {
  border-color: transparent;
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.focus\:ring-blue-500\/50:focus {
  --tw-ring-color: rgb(59 130 246 / 0.5);
}
.focus\:ring-indigo-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.dark\:divide-gray-700:is(.dark *) > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(55 65 81 / 1);
  border-color: rgb(55 65 81 / var(--tw-divide-opacity, 1));
}
.dark\:divide-gray-800:is(.dark *) > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(31 41 55 / 1);
  border-color: rgb(31 41 55 / var(--tw-divide-opacity, 1));
}
.dark\:\!border-white\/\[0\.08\]:is(.dark *) {
  border-color: rgb(255 255 255 / 0.08) !important;
}
.dark\:border-blue-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(29 78 216 / 1);
  border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));
}
.dark\:border-blue-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(30 64 175 / 1);
  border-color: rgb(30 64 175 / var(--tw-border-opacity, 1));
}
.dark\:border-blue-800\/50:is(.dark *) {
  border-color: rgb(30 64 175 / 0.5);
}
.dark\:border-emerald-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(6 95 70 / 1);
  border-color: rgb(6 95 70 / var(--tw-border-opacity, 1));
}
.dark\:border-emerald-800\/40:is(.dark *) {
  border-color: rgb(6 95 70 / 0.4);
}
.dark\:border-emerald-900\/40:is(.dark *) {
  border-color: rgb(6 78 59 / 0.4);
}
.dark\:border-gray-600:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / 1);
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.dark\:border-gray-600\/50:is(.dark *) {
  border-color: rgb(75 85 99 / 0.5);
}
.dark\:border-gray-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / 1);
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dark\:border-gray-700\/40:is(.dark *) {
  border-color: rgb(55 65 81 / 0.4);
}
.dark\:border-gray-700\/50:is(.dark *) {
  border-color: rgb(55 65 81 / 0.5);
}
.dark\:border-gray-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(31 41 55 / 1);
  border-color: rgb(31 41 55 / var(--tw-border-opacity, 1));
}
.dark\:border-green-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(21 128 61 / 1);
  border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));
}
.dark\:border-green-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(22 101 52 / 1);
  border-color: rgb(22 101 52 / var(--tw-border-opacity, 1));
}
.dark\:border-orange-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(194 65 12 / 1);
  border-color: rgb(194 65 12 / var(--tw-border-opacity, 1));
}
.dark\:border-purple-600\/40:is(.dark *) {
  border-color: rgb(147 51 234 / 0.4);
}
.dark\:border-purple-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(126 34 206 / 1);
  border-color: rgb(126 34 206 / var(--tw-border-opacity, 1));
}
.dark\:border-red-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(185 28 28 / 1);
  border-color: rgb(185 28 28 / var(--tw-border-opacity, 1));
}
.dark\:border-red-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(153 27 27 / 1);
  border-color: rgb(153 27 27 / var(--tw-border-opacity, 1));
}
.dark\:border-red-900\/40:is(.dark *) {
  border-color: rgb(127 29 29 / 0.4);
}
.dark\:border-white\/\[0\.06\]:is(.dark *) {
  border-color: rgb(255 255 255 / 0.06);
}
.dark\:border-yellow-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(133 77 14 / 1);
  border-color: rgb(133 77 14 / var(--tw-border-opacity, 1));
}
.dark\:border-t-gray-700:is(.dark *) {
  --tw-border-opacity: 1;
  border-top-color: rgb(55 65 81 / 1);
  border-top-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dark\:bg-amber-900\/20:is(.dark *) {
  background-color: rgb(120 53 15 / 0.2);
}
.dark\:bg-amber-900\/30:is(.dark *) {
  background-color: rgb(120 53 15 / 0.3);
}
.dark\:bg-blue-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.dark\:bg-blue-800:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(30 64 175 / 1);
  background-color: rgb(30 64 175 / var(--tw-bg-opacity, 1));
}
.dark\:bg-blue-900\/20:is(.dark *) {
  background-color: rgb(30 58 138 / 0.2);
}
.dark\:bg-blue-900\/30:is(.dark *) {
  background-color: rgb(30 58 138 / 0.3);
}
.dark\:bg-emerald-900\/20:is(.dark *) {
  background-color: rgb(6 78 59 / 0.2);
}
.dark\:bg-emerald-900\/30:is(.dark *) {
  background-color: rgb(6 78 59 / 0.3);
}
.dark\:bg-emerald-900\/50:is(.dark *) {
  background-color: rgb(6 78 59 / 0.5);
}
.dark\:bg-gray-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / 1);
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-700:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-700\/50:is(.dark *) {
  background-color: rgb(55 65 81 / 0.5);
}
.dark\:bg-gray-700\/60:is(.dark *) {
  background-color: rgb(55 65 81 / 0.6);
}
.dark\:bg-gray-800:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-800\/50:is(.dark *) {
  background-color: rgb(31 41 55 / 0.5);
}
.dark\:bg-gray-800\/60:is(.dark *) {
  background-color: rgb(31 41 55 / 0.6);
}
.dark\:bg-gray-900:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / 1);
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.dark\:bg-gray-900\/30:is(.dark *) {
  background-color: rgb(17 24 39 / 0.3);
}
.dark\:bg-gray-900\/40:is(.dark *) {
  background-color: rgb(17 24 39 / 0.4);
}
.dark\:bg-gray-900\/60:is(.dark *) {
  background-color: rgb(17 24 39 / 0.6);
}
.dark\:bg-gray-950:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(3 7 18 / 1);
  background-color: rgb(3 7 18 / var(--tw-bg-opacity, 1));
}
.dark\:bg-green-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / 1);
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.dark\:bg-green-800\/30:is(.dark *) {
  background-color: rgb(22 101 52 / 0.3);
}
.dark\:bg-green-900\/10:is(.dark *) {
  background-color: rgb(20 83 45 / 0.1);
}
.dark\:bg-green-900\/20:is(.dark *) {
  background-color: rgb(20 83 45 / 0.2);
}
.dark\:bg-orange-800\/30:is(.dark *) {
  background-color: rgb(154 52 18 / 0.3);
}
.dark\:bg-purple-900\/20:is(.dark *) {
  background-color: rgb(88 28 135 / 0.2);
}
.dark\:bg-red-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / 1);
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.dark\:bg-red-800\/30:is(.dark *) {
  background-color: rgb(153 27 27 / 0.3);
}
.dark\:bg-red-900\/10:is(.dark *) {
  background-color: rgb(127 29 29 / 0.1);
}
.dark\:bg-red-900\/20:is(.dark *) {
  background-color: rgb(127 29 29 / 0.2);
}
.dark\:bg-red-900\/30:is(.dark *) {
  background-color: rgb(127 29 29 / 0.3);
}
.dark\:bg-yellow-600:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / 1);
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.dark\:bg-yellow-900\/10:is(.dark *) {
  background-color: rgb(113 63 18 / 0.1);
}
.dark\:bg-yellow-900\/20:is(.dark *) {
  background-color: rgb(113 63 18 / 0.2);
}
.dark\:\!bg-gradient-to-br:is(.dark *) {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}
.dark\:\!from-slate-800:is(.dark *) {
  --tw-gradient-from: #1e293b var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.dark\:from-blue-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(30 58 138 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 58 138 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-blue-950\/20:is(.dark *) {
  --tw-gradient-from: rgb(23 37 84 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(23 37 84 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-cyan-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(22 78 99 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(22 78 99 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-gray-800:is(.dark *) {
  --tw-gradient-from: #1f2937 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-gray-800\/60:is(.dark *) {
  --tw-gradient-from: rgb(31 41 55 / 0.6) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-green-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(20 83 45 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(20 83 45 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-orange-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(124 45 18 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(124 45 18 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-purple-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(88 28 135 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(88 28 135 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-red-900\/30:is(.dark *) {
  --tw-gradient-from: rgb(127 29 29 / 0.3) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(127 29 29 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:via-emerald-950\/20:is(.dark *) {
  --tw-gradient-to: rgb(2 44 34 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(2 44 34 / 0.2) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.dark\:via-gray-900\/30:is(.dark *) {
  --tw-gradient-to: rgb(17 24 39 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(17 24 39 / 0.3) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.dark\:via-purple-950\/10:is(.dark *) {
  --tw-gradient-to: rgb(59 7 100 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(59 7 100 / 0.1) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.dark\:\!to-slate-900:is(.dark *) {
  --tw-gradient-to: #0f172a var(--tw-gradient-to-position) !important;
}
.dark\:to-amber-900\/30:is(.dark *) {
  --tw-gradient-to: rgb(120 53 15 / 0.3) var(--tw-gradient-to-position);
}
.dark\:to-blue-900\/10:is(.dark *) {
  --tw-gradient-to: rgb(30 58 138 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-blue-900\/30:is(.dark *) {
  --tw-gradient-to: rgb(30 58 138 / 0.3) var(--tw-gradient-to-position);
}
.dark\:to-gray-900\/40:is(.dark *) {
  --tw-gradient-to: rgb(17 24 39 / 0.4) var(--tw-gradient-to-position);
}
.dark\:to-green-900\/10:is(.dark *) {
  --tw-gradient-to: rgb(20 83 45 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-orange-900\/10:is(.dark *) {
  --tw-gradient-to: rgb(124 45 18 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-purple-900\/10:is(.dark *) {
  --tw-gradient-to: rgb(88 28 135 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-red-900\/10:is(.dark *) {
  --tw-gradient-to: rgb(127 29 29 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-slate-900\/20:is(.dark *) {
  --tw-gradient-to: rgb(15 23 42 / 0.2) var(--tw-gradient-to-position);
}
.dark\:to-teal-950\/10:is(.dark *) {
  --tw-gradient-to: rgb(4 47 46 / 0.1) var(--tw-gradient-to-position);
}
.dark\:to-transparent:is(.dark *) {
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
}
.dark\:fill-gray-700:is(.dark *) {
  fill: #374151;
}
.dark\:stroke-gray-600:is(.dark *) {
  stroke: #4b5563;
}
.dark\:stroke-gray-700:is(.dark *) {
  stroke: #374151;
}
.dark\:text-amber-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / 1);
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.dark\:text-blue-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / 1);
  color: rgb(191 219 254 / var(--tw-text-opacity, 1));
}
.dark\:text-blue-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / 1);
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.dark\:text-blue-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / 1);
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.dark\:text-cyan-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(34 211 238 / 1);
  color: rgb(34 211 238 / var(--tw-text-opacity, 1));
}
.dark\:text-emerald-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(110 231 183 / 1);
  color: rgb(110 231 183 / var(--tw-text-opacity, 1));
}
.dark\:text-emerald-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / 1);
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-100:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / 1);
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / 1);
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 1);
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-500:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dark\:text-gray-600:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.dark\:text-green-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(187 247 208 / 1);
  color: rgb(187 247 208 / var(--tw-text-opacity, 1));
}
.dark\:text-green-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / 1);
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.dark\:text-green-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / 1);
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.dark\:text-orange-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(254 215 170 / 1);
  color: rgb(254 215 170 / var(--tw-text-opacity, 1));
}
.dark\:text-orange-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(253 186 116 / 1);
  color: rgb(253 186 116 / var(--tw-text-opacity, 1));
}
.dark\:text-orange-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(251 146 60 / 1);
  color: rgb(251 146 60 / var(--tw-text-opacity, 1));
}
.dark\:text-purple-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(233 213 255 / 1);
  color: rgb(233 213 255 / var(--tw-text-opacity, 1));
}
.dark\:text-purple-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(216 180 254 / 1);
  color: rgb(216 180 254 / var(--tw-text-opacity, 1));
}
.dark\:text-purple-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / 1);
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.dark\:text-red-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / 1);
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.dark\:text-red-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / 1);
  color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.dark\:text-red-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / 1);
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.dark\:text-white:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.dark\:text-yellow-400:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / 1);
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.dark\:placeholder-gray-500:is(.dark *)::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));
}
.dark\:opacity-10:is(.dark *) {
  opacity: 0.1;
}
.dark\:shadow-none:is(.dark *) {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.dark\:hover\:border-blue-500\/50:hover:is(.dark *) {
  border-color: rgb(59 130 246 / 0.5);
}
.dark\:hover\:border-emerald-600:hover:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(5 150 105 / 1);
  border-color: rgb(5 150 105 / var(--tw-border-opacity, 1));
}
.dark\:hover\:border-purple-500\/50:hover:is(.dark *) {
  border-color: rgb(168 85 247 / 0.5);
}
.dark\:hover\:bg-blue-500:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / 1);
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-blue-900\/20:hover:is(.dark *) {
  background-color: rgb(30 58 138 / 0.2);
}
.dark\:hover\:bg-gray-700:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / 1);
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-gray-700\/50:hover:is(.dark *) {
  background-color: rgb(55 65 81 / 0.5);
}
.dark\:hover\:bg-gray-800:hover:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / 1);
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dark\:hover\:bg-gray-800\/50:hover:is(.dark *) {
  background-color: rgb(31 41 55 / 0.5);
}
.dark\:hover\:bg-gray-800\/60:hover:is(.dark *) {
  background-color: rgb(31 41 55 / 0.6);
}
.dark\:hover\:bg-purple-900\/20:hover:is(.dark *) {
  background-color: rgb(88 28 135 / 0.2);
}
.dark\:hover\:bg-purple-900\/30:hover:is(.dark *) {
  background-color: rgb(88 28 135 / 0.3);
}
.dark\:hover\:text-blue-100:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(219 234 254 / 1);
  color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-blue-300:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / 1);
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-blue-400:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / 1);
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-gray-200:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / 1);
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-gray-300:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / 1);
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dark\:hover\:text-purple-400:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / 1);
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.dark\:hover\:brightness-110:hover:is(.dark *) {
  --tw-brightness: brightness(1.1);
  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);
}
@media (min-width: 640px) {

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

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

  .sm\:mb-8 {
    margin-bottom: 2rem;
  }

  .sm\:mt-8 {
    margin-top: 2rem;
  }

  .sm\:block {
    display: block;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:h-10 {
    height: 2.5rem;
  }

  .sm\:h-20 {
    height: 5rem;
  }

  .sm\:w-10 {
    width: 2.5rem;
  }

  .sm\:w-20 {
    width: 5rem;
  }

  .sm\:w-56 {
    width: 14rem;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

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

  .sm\:gap-3 {
    gap: 0.75rem;
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:rounded-2xl {
    border-radius: 16px;
  }

  .sm\:p-12 {
    padding: 3rem;
  }

  .sm\:p-20 {
    padding: 5rem;
  }

  .sm\:p-3 {
    padding: 0.75rem;
  }

  .sm\:p-4 {
    padding: 1rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .sm\:py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .sm\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}
@media (min-width: 768px) {

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {

  .lg\:hidden {
    display: none;
  }

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

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

  .lg\:p-6 {
    padding: 1.5rem;
  }

  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
@media (min-width: 1280px) {

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

/* ==================== THEMED ALERT ==================== */
/* Modern, sharp alert with dark mode — error / warning / success / info */

/* ── Animations ── */
@keyframes themedAlertSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes themedIconPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* ══════════════════════════════════════════════════════════ */
/*                      BASE LAYOUT                         */
/* ══════════════════════════════════════════════════════════ */

.themed-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: themedAlertSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Left accent bar */
.themed-alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}

/* ── Icon ── */
.themed-alert__icon-col { flex-shrink: 0; padding-top: 1px; }

.themed-alert__icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: themedIconPulse 2s ease-in-out 1;
}

.themed-alert__icon { font-size: 16px !important; color: #fff !important; }
.themed-alert__icon .anticon { font-size: 16px !important; color: #fff !important; }

/* ── Content ── */
.themed-alert__content { flex: 1 1; min-width: 0; }

.themed-alert__title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.themed-alert__description {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
  opacity: 0.85;
}

/* ── Suggestion pill ── */
.themed-alert__suggestion {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #92400e;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.themed-alert__suggestion-label { font-weight: 600; white-space: nowrap; }

/* ── Contact link ── */
.themed-alert__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.themed-alert__contact-link:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.3);
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* ── Close button ── */
.themed-alert__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
  padding: 0;
  margin-top: -2px;
}

.themed-alert__close:hover { transform: scale(1.05); }
.themed-alert__close:active { transform: scale(0.95); }


/* ══════════════════════════════════════════════════════════ */
/*                   ERROR — Light                          */
/* ══════════════════════════════════════════════════════════ */

.themed-alert--error {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.7) 100%);
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08), 0 4px 14px -4px rgba(239, 68, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.themed-alert--error::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.themed-alert--error .themed-alert__icon-wrapper { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3); }
.themed-alert--error .themed-alert__title { color: #991b1b; }
.themed-alert--error .themed-alert__description { color: #b91c1c; }
.themed-alert--error .themed-alert__close { background: rgba(239, 68, 68, 0.08); color: #b91c1c; }
.themed-alert--error .themed-alert__close:hover { background: rgba(239, 68, 68, 0.16); color: #991b1b; }


/* ══════════════════════════════════════════════════════════ */
/*                  WARNING — Light                         */
/* ══════════════════════════════════════════════════════════ */

.themed-alert--warning {
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.7) 100%);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08), 0 4px 14px -4px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.themed-alert--warning::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.themed-alert--warning .themed-alert__icon-wrapper { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3); }
.themed-alert--warning .themed-alert__title { color: #92400e; }
.themed-alert--warning .themed-alert__description { color: #a16207; }
.themed-alert--warning .themed-alert__close { background: rgba(245, 158, 11, 0.08); color: #a16207; }
.themed-alert--warning .themed-alert__close:hover { background: rgba(245, 158, 11, 0.16); color: #92400e; }


/* ══════════════════════════════════════════════════════════ */
/*                  SUCCESS — Light                         */
/* ══════════════════════════════════════════════════════════ */

.themed-alert--success {
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.7) 100%);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08), 0 4px 14px -4px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.themed-alert--success::before { background: linear-gradient(180deg, #10b981, #059669); }
.themed-alert--success .themed-alert__icon-wrapper { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3); }
.themed-alert--success .themed-alert__title { color: #065f46; }
.themed-alert--success .themed-alert__description { color: #047857; }
.themed-alert--success .themed-alert__close { background: rgba(16, 185, 129, 0.08); color: #047857; }
.themed-alert--success .themed-alert__close:hover { background: rgba(16, 185, 129, 0.16); color: #065f46; }


/* ══════════════════════════════════════════════════════════ */
/*                    INFO — Light                          */
/* ══════════════════════════════════════════════════════════ */

.themed-alert--info {
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(224, 231, 255, 0.7) 100%);
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08), 0 4px 14px -4px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.themed-alert--info::before { background: linear-gradient(180deg, #6366f1, #4f46e5); }
.themed-alert--info .themed-alert__icon-wrapper { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3); }
.themed-alert--info .themed-alert__title { color: #3730a3; }
.themed-alert--info .themed-alert__description { color: #4338ca; }
.themed-alert--info .themed-alert__close { background: rgba(99, 102, 241, 0.08); color: #4338ca; }
.themed-alert--info .themed-alert__close:hover { background: rgba(99, 102, 241, 0.16); color: #3730a3; }


/* ══════════════════════════════════════════════════════════ */
/*                  DARK MODE — All Types                   */
/* ══════════════════════════════════════════════════════════ */

/* ── Error dark ── */
.themed-alert--dark.themed-alert--error,
html.dark .themed-alert--error {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.2) 0%, rgba(153, 27, 27, 0.12) 100%);
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 14px -4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.themed-alert--dark.themed-alert--error::before,
html.dark .themed-alert--error::before { background: linear-gradient(180deg, #f87171, #ef4444); }
.themed-alert--dark.themed-alert--error .themed-alert__icon-wrapper,
html.dark .themed-alert--error .themed-alert__icon-wrapper { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 3px 12px rgba(239,68,68,0.35); }
.themed-alert--dark.themed-alert--error .themed-alert__title,
html.dark .themed-alert--error .themed-alert__title { color: #fca5a5; }
.themed-alert--dark.themed-alert--error .themed-alert__description,
html.dark .themed-alert--error .themed-alert__description { color: #fca5a5; }
.themed-alert--dark.themed-alert--error .themed-alert__close,
html.dark .themed-alert--error .themed-alert__close { background: rgba(239,68,68,0.12); color: #fca5a5; }
.themed-alert--dark.themed-alert--error .themed-alert__close:hover,
html.dark .themed-alert--error .themed-alert__close:hover { background: rgba(239,68,68,0.22); color: #fecaca; }

/* ── Warning dark ── */
.themed-alert--dark.themed-alert--warning,
html.dark .themed-alert--warning {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.2) 0%, rgba(146, 64, 14, 0.12) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 14px -4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.themed-alert--dark.themed-alert--warning::before,
html.dark .themed-alert--warning::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.themed-alert--dark.themed-alert--warning .themed-alert__icon-wrapper,
html.dark .themed-alert--warning .themed-alert__icon-wrapper { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 3px 12px rgba(245,158,11,0.35); }
.themed-alert--dark.themed-alert--warning .themed-alert__title,
html.dark .themed-alert--warning .themed-alert__title { color: #fde68a; }
.themed-alert--dark.themed-alert--warning .themed-alert__description,
html.dark .themed-alert--warning .themed-alert__description { color: #fde68a; }
.themed-alert--dark.themed-alert--warning .themed-alert__close,
html.dark .themed-alert--warning .themed-alert__close { background: rgba(245,158,11,0.12); color: #fde68a; }
.themed-alert--dark.themed-alert--warning .themed-alert__close:hover,
html.dark .themed-alert--warning .themed-alert__close:hover { background: rgba(245,158,11,0.22); color: #fef3c7; }

/* ── Success dark ── */
.themed-alert--dark.themed-alert--success,
html.dark .themed-alert--success {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.2) 0%, rgba(6, 95, 70, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 14px -4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.themed-alert--dark.themed-alert--success::before,
html.dark .themed-alert--success::before { background: linear-gradient(180deg, #34d399, #10b981); }
.themed-alert--dark.themed-alert--success .themed-alert__icon-wrapper,
html.dark .themed-alert--success .themed-alert__icon-wrapper { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 3px 12px rgba(16,185,129,0.35); }
.themed-alert--dark.themed-alert--success .themed-alert__title,
html.dark .themed-alert--success .themed-alert__title { color: #a7f3d0; }
.themed-alert--dark.themed-alert--success .themed-alert__description,
html.dark .themed-alert--success .themed-alert__description { color: #a7f3d0; }
.themed-alert--dark.themed-alert--success .themed-alert__close,
html.dark .themed-alert--success .themed-alert__close { background: rgba(16,185,129,0.12); color: #a7f3d0; }
.themed-alert--dark.themed-alert--success .themed-alert__close:hover,
html.dark .themed-alert--success .themed-alert__close:hover { background: rgba(16,185,129,0.22); color: #d1fae5; }

/* ── Info dark ── */
.themed-alert--dark.themed-alert--info,
html.dark .themed-alert--info {
  background: linear-gradient(135deg, rgba(55, 48, 163, 0.15) 0%, rgba(67, 56, 202, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 14px -4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
}
.themed-alert--dark.themed-alert--info::before,
html.dark .themed-alert--info::before { background: linear-gradient(180deg, #818cf8, #6366f1); }
.themed-alert--dark.themed-alert--info .themed-alert__icon-wrapper,
html.dark .themed-alert--info .themed-alert__icon-wrapper { background: linear-gradient(135deg, #818cf8, #6366f1); box-shadow: 0 3px 12px rgba(99,102,241,0.35); }
.themed-alert--dark.themed-alert--info .themed-alert__title,
html.dark .themed-alert--info .themed-alert__title { color: #c7d2fe; }
.themed-alert--dark.themed-alert--info .themed-alert__description,
html.dark .themed-alert--info .themed-alert__description { color: #c7d2fe; }
.themed-alert--dark.themed-alert--info .themed-alert__close,
html.dark .themed-alert--info .themed-alert__close { background: rgba(99,102,241,0.12); color: #c7d2fe; }
.themed-alert--dark.themed-alert--info .themed-alert__close:hover,
html.dark .themed-alert--info .themed-alert__close:hover { background: rgba(99,102,241,0.22); color: #e0e7ff; }

/* ── Suggestion pill dark (shared) ── */
.themed-alert--dark .themed-alert__suggestion,
html.dark .themed-alert__suggestion {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
}

/* ── Contact link dark (shared) ── */
.themed-alert--dark .themed-alert__contact-link,
html.dark .themed-alert__contact-link {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}
.themed-alert--dark .themed-alert__contact-link:hover,
html.dark .themed-alert__contact-link:hover {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}


/* ══════════════════════════════════════════════════════════ */
/*             ANT DESIGN MESSAGE TOAST OVERRIDE             */
/* ══════════════════════════════════════════════════════════ */
/* Makes the global message.error() toasts look sharp too    */

.ant-message .ant-message-notice-content {
  border-radius: 12px !important;
  padding: 12px 20px !important;
  box-shadow:
    0 6px 20px -4px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06) !important;
  font-weight: 500;
  font-size: 13.5px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Error-specific toast */
.ant-message .ant-message-error .ant-message-notice-content,
.ant-message .ant-message-notice.ant-message-notice-error .ant-message-notice-content {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #991b1b !important;
  box-shadow:
    0 6px 20px -4px rgba(239, 68, 68, 0.15),
    0 2px 6px rgba(239, 68, 68, 0.06) !important;
}

.ant-message .ant-message-error .anticon,
.ant-message .ant-message-notice.ant-message-notice-error .anticon {
  color: #ef4444 !important;
}

/* Success toast */
.ant-message .ant-message-success .ant-message-notice-content,
.ant-message .ant-message-notice.ant-message-notice-success .ant-message-notice-content {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  color: #065f46 !important;
  box-shadow:
    0 6px 20px -4px rgba(16, 185, 129, 0.15),
    0 2px 6px rgba(16, 185, 129, 0.06) !important;
}

.ant-message .ant-message-success .anticon,
.ant-message .ant-message-notice.ant-message-notice-success .anticon {
  color: #10b981 !important;
}

/* Warning toast */
.ant-message .ant-message-warning .ant-message-notice-content,
.ant-message .ant-message-notice.ant-message-notice-warning .ant-message-notice-content {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  color: #92400e !important;
  box-shadow:
    0 6px 20px -4px rgba(245, 158, 11, 0.15),
    0 2px 6px rgba(245, 158, 11, 0.06) !important;
}

.ant-message .ant-message-warning .anticon,
.ant-message .ant-message-notice.ant-message-notice-warning .anticon {
  color: #f59e0b !important;
}

/* ── Dark mode toast overrides ── */
html.dark .ant-message .ant-message-notice-content {
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 6px 24px -4px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html.dark .ant-message .ant-message-error .ant-message-notice-content,
html.dark .ant-message .ant-message-notice.ant-message-notice-error .ant-message-notice-content {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.85) 0%, rgba(153, 27, 27, 0.75) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #fecaca !important;
  box-shadow:
    0 6px 24px -4px rgba(239, 68, 68, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark .ant-message .ant-message-error .anticon,
html.dark .ant-message .ant-message-notice.ant-message-notice-error .anticon {
  color: #f87171 !important;
}

html.dark .ant-message .ant-message-success .ant-message-notice-content,
html.dark .ant-message .ant-message-notice.ant-message-notice-success .ant-message-notice-content {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(6, 95, 70, 0.75) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #a7f3d0 !important;
  box-shadow:
    0 6px 24px -4px rgba(16, 185, 129, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark .ant-message .ant-message-success .anticon,
html.dark .ant-message .ant-message-notice.ant-message-notice-success .anticon {
  color: #34d399 !important;
}

html.dark .ant-message .ant-message-warning .ant-message-notice-content,
html.dark .ant-message .ant-message-notice.ant-message-notice-warning .ant-message-notice-content {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.85) 0%, rgba(146, 64, 14, 0.75) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #fde68a !important;
  box-shadow:
    0 6px 24px -4px rgba(245, 158, 11, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html.dark .ant-message .ant-message-warning .anticon,
html.dark .ant-message .ant-message-notice.ant-message-notice-warning .anticon {
  color: #fbbf24 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Auth Pages – shared design system
   Modern, sharp, user-friendly.  Uses --ml-* tokens from index.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Full-page wrapper ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #0f0f1a;
}

/* Subtle animated gradient background */
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Light mode */
.auth-page--light {
  background: #f5f5fa;
}
.auth-page--light::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* Tiny floating dots decoration */
.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px, rgba(99, 102, 241, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.auth-page--light::after {
  opacity: 0.35;
}

/* ─── Card ─── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 32, 48, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 68px -12px rgba(0, 0, 0, 0.55),
    0 4px 20px -4px rgba(0, 0, 0, 0.3);
  padding: 40px 36px 36px;
  animation: auth-card-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-card--wide {
  max-width: 500px;
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Light mode card */
.auth-page--light .auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 68px -12px rgba(0, 0, 0, 0.12),
    0 4px 20px -4px rgba(0, 0, 0, 0.06);
}

/* ─── Section dividers ─── */
.auth-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
  margin: 20px 0;
  border: none;
}
.auth-page--light .auth-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

/* ─── Labels ─── */
.auth-card .ant-form-item-label > label {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  color: #c9cdd4 !important;
}
.auth-page--light .auth-card .ant-form-item-label > label {
  color: #374151 !important;
}

/* ─── Inputs ─── */
.auth-input {
  height: 46px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f3f5 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.auth-input:hover {
  border-color: rgba(99, 102, 241, 0.35) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.auth-input:focus,
.auth-input.ant-input-affix-wrapper-focused {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
.auth-input .ant-input {
  background: transparent !important;
  color: #f1f3f5 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.auth-input .ant-input::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}
.auth-input .ant-input-prefix {
  color: rgba(255, 255, 255, 0.3) !important;
  -webkit-margin-end: 10px !important;
          margin-inline-end: 10px !important;
}
.auth-input .ant-input-suffix {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* ─── Browser autofill overrides (dark) ─── */
.auth-input:has(.ant-input:-webkit-autofill) {
  background: #252635 !important;
}
.auth-input .ant-input:-webkit-autofill,
.auth-input .ant-input:-webkit-autofill:hover,
.auth-input .ant-input:-webkit-autofill:focus,
.auth-input .ant-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #252635 inset !important;
  -webkit-text-fill-color: #f1f3f5 !important;
  caret-color: #f1f3f5 !important;
  border: none !important;
  outline: none !important;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

/* Light mode inputs */
.auth-page--light .auth-input {
  background: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
.auth-page--light .auth-input:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  background: rgba(0, 0, 0, 0.01) !important;
}
.auth-page--light .auth-input:focus,
.auth-page--light .auth-input.ant-input-affix-wrapper-focused {
  border-color: #6366f1 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08) !important;
}
.auth-page--light .auth-input .ant-input {
  color: #111827 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.auth-page--light .auth-input .ant-input::placeholder {
  color: #9ca3af !important;
}
.auth-page--light .auth-input .ant-input-prefix {
  color: #9ca3af !important;
}
.auth-page--light .auth-input .ant-input-suffix {
  color: #9ca3af !important;
}

/* ─── Browser autofill overrides (light) ─── */
.auth-page--light .auth-input:has(.ant-input:-webkit-autofill) {
  background: #fafafc !important;
}
.auth-page--light .auth-input .ant-input:-webkit-autofill,
.auth-page--light .auth-input .ant-input:-webkit-autofill:hover,
.auth-page--light .auth-input .ant-input:-webkit-autofill:focus,
.auth-page--light .auth-input .ant-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fafafc inset !important;
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827 !important;
  border: none !important;
  outline: none !important;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

/* Help text under inputs (Ant default) */
.auth-card .ant-form-item-explain-success,
.auth-card .ant-form-item-extra {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 4px;
}
.auth-page--light .auth-card .ant-form-item-explain-success,
.auth-page--light .auth-card .ant-form-item-extra {
  color: #9ca3af !important;
}

/* ─── Custom field descriptions (replaces Ant help prop) ─── */
.auth-field-desc {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 6px;
  line-height: 1.4;
  padding-left: 1px;
}
.auth-page--light .auth-field-desc {
  color: #9ca3af;
}

/* ─── Section headers inside form ─── */
.auth-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  margin-top: 4px;
}
.auth-section-header:not(:first-child) {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-page--light .auth-section-header:not(:first-child) {
  border-top-color: rgba(0, 0, 0, 0.06);
}
.auth-section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-size: 14px;
  flex-shrink: 0;
}
.auth-page--light .auth-section-icon {
  background: rgba(99, 102, 241, 0.07);
  color: #6366f1;
}
.auth-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.5);
}
.auth-page--light .auth-section-title {
  color: #6b7280;
}

/* Tighter form-item spacing inside auth cards */
.auth-card .ant-form-item {
  margin-bottom: 18px !important;
}

/* ─── Primary button ─── */
.auth-btn {
  height: 46px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  border: none !important;
  background: #6366f1 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px -2px rgba(99, 102, 241, 0.45) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
}
.auth-btn:hover:not(:disabled) {
  background: #5558e6 !important;
  box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.55) !important;
  transform: translateY(-1px);
}
.auth-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px -1px rgba(99, 102, 241, 0.4) !important;
}

/* Secondary / ghost button */
.auth-btn--secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #c9cdd4 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
.auth-btn--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f3f5 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  transform: none;
}
.auth-page--light .auth-btn--secondary {
  background: #f9fafb !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}
.auth-page--light .auth-btn--secondary:hover:not(:disabled) {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

/* Green verify button */
.auth-btn--green {
  background: #10b981 !important;
  box-shadow: 0 2px 10px -2px rgba(16, 185, 129, 0.45) !important;
}
.auth-btn--green:hover:not(:disabled) {
  background: #059669 !important;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.55) !important;
}

/* ─── Links ─── */
.auth-link {
  color: #818cf8 !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-link:hover {
  color: #a5b4fc !important;
}
.auth-page--light .auth-link {
  color: #6366f1 !important;
}
.auth-page--light .auth-link:hover {
  color: #4f46e5 !important;
}

/* ─── Footer text ─── */
.auth-footer {
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.auth-page--light .auth-footer {
  color: #6b7280;
}

/* ─── Info box (invitation details, etc.) ─── */
.auth-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.auth-page--light .auth-info-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.auth-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.auth-info-row + .auth-info-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.auth-page--light .auth-info-row + .auth-info-row {
  border-top-color: #f3f4f6;
}

.auth-info-icon {
  font-size: 16px;
  color: #818cf8;
  opacity: 0.7;
  flex-shrink: 0;
}
.auth-page--light .auth-info-icon {
  color: #6366f1;
}

.auth-info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}
.auth-page--light .auth-info-label {
  color: #9ca3af;
}

.auth-info-value {
  font-size: 14px;
  font-weight: 400;
  color: #e5e7eb;
}
.auth-page--light .auth-info-value {
  color: #1f2937;
}

/* ─── 2FA code input ─── */
.auth-totp-input {
  text-align: center !important;
  font-size: 28px !important;
  letter-spacing: 10px !important;
  font-family: 'JetBrains Mono', 'SF Mono', monospace !important;
  height: 56px !important;
  max-width: 220px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f3f5 !important;
  caret-color: #6366f1;
}
.auth-totp-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  background: rgba(99, 102, 241, 0.06) !important;
}
.auth-page--light .auth-totp-input {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}
.auth-page--light .auth-totp-input:focus {
  background: #fff !important;
}

/* ─── 2FA shield icon container ─── */
.auth-2fa-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.auth-page--light .auth-2fa-icon {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
}

/* ─── Title / subtitle inside card ─── */
.auth-title {
  color: #f1f3f5;
  margin-bottom: 6px !important;
  font-weight: 700;
}
.auth-page--light .auth-title {
  color: #111827;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13.5px;
}
.auth-page--light .auth-subtitle {
  color: #6b7280;
}

/* ─── Alert tweaks inside cards ─── */
.auth-card .ant-alert {
  border-radius: 10px !important;
  border: none !important;
  font-size: 13px !important;
}

/* ─── Spinner state ─── */
.auth-loading {
  text-align: center;
  padding: 48px 0;
}
.auth-loading-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.auth-page--light .auth-loading-text {
  color: #6b7280;
}

/* ─── Forgot-password helper text ─── */
.auth-hint {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.auth-page--light .auth-hint {
  color: #9ca3af;
}

/* TagSelector.css */
.tag-selector-dropdown .ant-select-dropdown {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-selector-option-with-delete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tag-selector-option-with-delete:hover .tag-delete-btn {
  opacity: 1;
}

.tag-delete-btn {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.tag-selector-create-section {
  border-top: 1px solid #f0f0f0;
  padding: 12px;
  background: #fafafa;
}

.tag-selector-color-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-selector-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tag-selector-color-swatch.selected {
  transform: scale(1.15);
  border: 3px solid #000;
}

.tag-selector-color-swatch:hover {
  transform: scale(1.1);
}

/* ---- Dark mode overrides for tag create section in dropdown ---- */
body:has(.themed-modal.dark-modal) .tag-create-section {
  background: rgba(255, 255, 255, 0.04) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body:has(.themed-modal.dark-modal) .tag-create-section .ant-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e5e7eb !important;
}

body:has(.themed-modal.dark-modal) .tag-create-section .ant-input::placeholder {
  color: #6b7280 !important;
}

body:has(.themed-modal.dark-modal) .tag-create-section .tag-color-label {
  color: #9ca3af !important;
}

body:has(.themed-modal.dark-modal) .tag-create-section .ant-btn-dashed {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #9ca3af !important;
}

body:has(.themed-modal.dark-modal) .tag-create-section .ant-btn-dashed:hover {
  border-color: #6366f1 !important;
  color: #a5b4fc !important;
}

/* ============================================
   Add Monitor Modal — Media Luna
   Minimal CSS: only Ant Design overrides and
   custom elements Tailwind can't reach.
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.amm-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.amm-root .ant-modal-header { display: none !important; }
.amm-root .ant-modal-body { padding: 0 !important; }
.amm-root .ant-modal-close { display: none !important; }

/* ── Header ── */
.amm-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.amm-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.amm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.amm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.amm-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.amm-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Scrollable body ── */
.amm-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
}
.amm-body::-webkit-scrollbar { width: 4px; }
.amm-body::-webkit-scrollbar-track { background: transparent; }
.amm-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.amm-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.amm-body.dark::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); }
.amm-body.dark::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ── Section label ── */
.amm-label {
  display: block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; margin-bottom: 6px;
}
.amm-label.dark { color: #9ca3af; }

/* ── Type picker grid ── */
.amm-type-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 5px; gap: 5px;
}
@media (max-width: 560px) { .amm-type-grid { grid-template-columns: repeat(4, 1fr); } }

.amm-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px 6px; border-radius: 9px;
  border: 1.5px solid transparent; background: #f8f9fb;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none;
  outline: none;
}
.amm-type-btn:hover { background: #f0f1f5; border-color: rgba(99,102,241,0.15); }
.amm-type-btn.active { border-color: #6366f1; background: rgba(99,102,241,0.06); box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }
.amm-type-btn.dark { background: rgba(255,255,255,0.03); }
.amm-type-btn.dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(99,102,241,0.2); }
.amm-type-btn.dark.active { background: rgba(99,102,241,0.1); border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.amm-type-icon { font-size: 16px; color: #9ca3af; line-height: 1; transition: color 0.15s; }
.amm-type-btn.active .amm-type-icon { color: #6366f1; }
.amm-type-btn:hover .amm-type-icon { color: #6366f1; }
.amm-type-btn.dark .amm-type-icon { color: #6b7280; }
.amm-type-btn.dark.active .amm-type-icon { color: #a5b4fc; }
.amm-type-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: #9ca3af; }
.amm-type-btn.active .amm-type-label { color: #6366f1; }
.amm-type-btn.dark .amm-type-label { color: #6b7280; }
.amm-type-btn.dark.active .amm-type-label { color: #a5b4fc; }

/* ── Pills (interval, timeout, days, auth) ── */
.amm-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border-radius: 7px; font-size: 12px; font-weight: 550;
  border: 1.5px solid rgba(0,0,0,0.07); background: #f8f9fb; color: #4b5563;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none; white-space: nowrap;
  line-height: 1.3;
}
.amm-pill:hover:not(.disabled) { border-color: rgba(99,102,241,0.2); color: #6366f1; background: rgba(99,102,241,0.04); }
.amm-pill.active { border-color: #6366f1; background: #6366f1; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.amm-pill.disabled { opacity: 0.35; cursor: not-allowed; }

/* Dark pills */
.themed-modal.dark-modal .amm-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #9ca3af; }
.themed-modal.dark-modal .amm-pill:hover:not(.disabled) { border-color: rgba(99,102,241,0.3); color: #a5b4fc; background: rgba(99,102,241,0.08); }
.themed-modal.dark-modal .amm-pill.active { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.4); }

/* ── Custom inline input ── */
.amm-inline-input {
  width: 80px; padding: 5px 10px; border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,0.07); background: #f8f9fb;
  font-size: 12px; font-weight: 500; color: #4b5563;
  outline: none; font-family: inherit; transition: all 0.15s;
}
.amm-inline-input::placeholder { color: #c0c5cd; }
.amm-inline-input:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }
.amm-inline-input.dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #d1d5db; }
.amm-inline-input.dark::placeholder { color: #4b5563; }
.amm-inline-input.dark:focus { border-color: #6366f1; background: rgba(99,102,241,0.06); box-shadow: 0 0 0 2px rgba(99,102,241,0.12); }

/* ── Validation badge ── */
.amm-valid-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  letter-spacing: 0.1px;
}
.amm-valid-badge.valid { background: rgba(16,185,129,0.08); color: #10b981; }
.amm-valid-badge.invalid { background: rgba(239,68,68,0.08); color: #ef4444; }
.amm-valid-badge.validating { background: rgba(99,102,241,0.08); color: #6366f1; }

/* ── Card (protocol config, SSL, etc.) ── */
.amm-card {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06); background: #fafbfc;
  transition: border-color 0.15s;
}
.amm-card:hover { border-color: rgba(0,0,0,0.1); }
.amm-card.dark { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06); }
.amm-card.dark:hover { border-color: rgba(255,255,255,0.1); }
.amm-card.compact { padding: 8px 12px; }

/* ── Badge (region count) ── */
.amm-badge {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
  background: rgba(99,102,241,0.08); color: #6366f1; letter-spacing: 0.2px;
}
.themed-modal.dark-modal .amm-badge { background: rgba(99,102,241,0.12); color: #a5b4fc; }

/* ── Input label prefix ── */
.amm-input-label {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 32px; flex-shrink: 0;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb;
  border-right: none; border-radius: 8px 0 0 8px;
}
.amm-input-label.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.amm-input-label.wide { width: 68px; }

/* ── Collapse override ── */
.amm-collapse { border-radius: 10px !important; overflow: hidden; border: 1px solid rgba(0,0,0,0.06) !important; background: transparent !important; margin-bottom: 8px; }
.amm-collapse .ant-collapse-header { padding: 10px 14px !important; background: rgba(0,0,0,0.015); transition: background 0.15s; }
.amm-collapse .ant-collapse-header:hover { background: rgba(0,0,0,0.03); }
.amm-collapse .ant-collapse-content-box { padding: 14px !important; }

/* Dark collapse */
.themed-modal.dark-modal .amm-collapse { border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .amm-collapse .ant-collapse-header { background: rgba(255,255,255,0.02) !important; color: #e5e7eb !important; }
.themed-modal.dark-modal .amm-collapse .ant-collapse-header:hover { background: rgba(255,255,255,0.04) !important; }
.themed-modal.dark-modal .amm-collapse .ant-collapse-content { background: transparent !important; border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .amm-collapse .ant-collapse-expand-icon .anticon { color: #6b7280 !important; }

/* ── Footer ── */
.amm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.amm-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}
.amm-btn-cancel {
  padding: 7px 18px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.amm-btn-cancel:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.amm-btn-cancel.dark { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.amm-btn-cancel.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }
.amm-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.amm-btn-submit:hover { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.amm-btn-submit:active { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.amm-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Ant Design input overrides — match app theme ── */
.amm-root .ant-input,
.amm-root .ant-input-number,
.amm-root .ant-input-affix-wrapper,
.amm-root .ant-select-selector,
.amm-root textarea.ant-input { border-radius: 10px !important; }

.amm-root .ant-input-affix-wrapper .ant-input {
  background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important;
}

.amm-root .ant-select { background: transparent !important; background-color: transparent !important; }
.amm-root .ant-select-selection-search-input { background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
.amm-root .ant-select-selection-overflow,
.amm-root .ant-select-selection-search { background: transparent !important; }

/* Multi-select chips */
.amm-root .ant-select-multiple .ant-select-selection-item {
  border-radius: 5px; background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.12);
  color: #4f46e5; font-size: 11px; font-weight: 550; height: 24px; line-height: 22px;
}
.amm-root .ant-select-multiple .ant-select-selection-item-remove { color: #818cf8; }
.amm-root .ant-select-multiple .ant-select-selection-item-remove:hover { color: #ef4444; }

/* Form item — tighter spacing */
.amm-root .ant-form-item { margin-bottom: 0; }
.amm-root .ant-form-item-label { padding-bottom: 2px !important; }
.amm-root .ant-form-item-label > label { font-size: 12px !important; font-weight: 500 !important; }

/* InputNumber addon */
.amm-root .ant-input-number-group-addon { border-radius: 10px 0 0 10px !important; font-size: 11px; font-weight: 600; }

/* ── Dark mode — Ant Design element overrides ── */
.themed-modal.dark-modal .amm-valid-badge.valid { background: rgba(16,185,129,0.12); color: #34d399; }
.themed-modal.dark-modal .amm-valid-badge.invalid { background: rgba(239,68,68,0.12); color: #f87171; }
.themed-modal.dark-modal .amm-valid-badge.validating { background: rgba(99,102,241,0.12); color: #a5b4fc; }

.themed-modal.dark-modal .amm-root .ant-select-multiple .ant-select-selection-item {
  background: rgba(99,102,241,0.15) !important; border-color: rgba(99,102,241,0.25) !important; color: #c7d2fe !important;
}
.themed-modal.dark-modal .amm-root .ant-select-multiple .ant-select-selection-item-remove { color: #818cf8 !important; }
.themed-modal.dark-modal .amm-root .ant-select-selection-placeholder { color: #4b5563 !important; }

/* Dark switch */
.themed-modal.dark-modal .ant-switch:not(.ant-switch-checked) { background: rgba(255,255,255,0.15) !important; }

/* Dark form labels */
.themed-modal.dark-modal.amm-root .ant-form-item-label > label,
.themed-modal.dark-modal .amm-root .ant-form-item-label > label { color: #d1d5db !important; }

/* Dark input prefix */
.themed-modal.dark-modal .ant-input-prefix .anticon,
.themed-modal.dark-modal .ant-input-suffix .anticon { color: #6b7280 !important; }
.themed-modal.dark-modal .ant-input-affix-wrapper-focused .ant-input-prefix .anticon { color: #a5b4fc !important; }

/* Dark password eye */
.themed-modal.dark-modal .ant-input-password .ant-input-suffix .anticon:hover { color: #a5b4fc !important; }

/* Space.Compact in dark */
.themed-modal.dark-modal .ant-input-group .ant-input[readonly] { background: rgba(255,255,255,0.06) !important; color: #6b7280 !important; border-color: rgba(255,255,255,0.1) !important; }
.themed-modal.dark-modal .ant-space-compact .ant-input-number { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.themed-modal.dark-modal .ant-space-compact .ant-input-number-input { color: #e5e7eb !important; }

/* Dark InputNumber addon */
.themed-modal.dark-modal .ant-input-number-group-addon { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; color: #9ca3af !important; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .amm-header { padding: 14px 16px 12px; }
  .amm-body { padding: 14px 16px 8px; }
  .amm-footer { padding: 12px 16px; }
}

/* ==================== SHARED MODAL STYLES ==================== */
/* Consistent theming for all popup modals across the application */

/* ==================== ANIMATIONS ==================== */

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==================== BASE MODAL STYLES ==================== */

.themed-modal .ant-modal-content {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

.themed-modal .ant-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.themed-modal .ant-modal-body {
  padding: 24px;
}

.themed-modal .ant-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 24px;
}

/* ==================== MODAL HEADER ICON BOX ==================== */

.modal-header-icon {
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header-icon.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.modal-header-icon.blue {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.modal-header-icon.danger {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-header-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modal-header-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ==================== MODAL BUTTONS ==================== */

.themed-modal .modal-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  font-weight: 500;
}

.themed-modal .modal-btn-primary:hover {
  background: linear-gradient(135deg, #5558e3 0%, #7c4fea 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.themed-modal .modal-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  font-weight: 500;
}

.themed-modal .modal-btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* ==================== INFO BOXES ==================== */

.modal-info-box {
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

/* ==================== DARK MODE STYLES ==================== */

/* Modal wrapper - higher specificity to override global styles */
.themed-modal.dark-modal.ant-modal .ant-modal-content,
.themed-modal.dark-modal .ant-modal-content,
html.dark .themed-modal.dark-modal .ant-modal-content {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7) !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-header,
.themed-modal.dark-modal .ant-modal-header,
html.dark .themed-modal.dark-modal .ant-modal-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-title,
.themed-modal.dark-modal .ant-modal-title,
html.dark .themed-modal.dark-modal .ant-modal-title {
  color: #f3f4f6 !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-body,
.themed-modal.dark-modal .ant-modal-body,
html.dark .themed-modal.dark-modal .ant-modal-body {
  color: #e5e7eb !important;
  background: #1e293b !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-footer,
.themed-modal.dark-modal .ant-modal-footer,
html.dark .themed-modal.dark-modal .ant-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-close,
.themed-modal.dark-modal .ant-modal-close,
html.dark .themed-modal.dark-modal .ant-modal-close {
  color: #9ca3af !important;
}

.themed-modal.dark-modal.ant-modal .ant-modal-close:hover,
.themed-modal.dark-modal .ant-modal-close:hover,
html.dark .themed-modal.dark-modal .ant-modal-close:hover {
  color: #f3f4f6 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Modal mask styling */
.dark-modal-wrapper .ant-modal-mask,
.themed-modal.dark-modal + .ant-modal-mask,
.ant-modal-wrap:has(.themed-modal.dark-modal) .ant-modal-mask,
html.dark .ant-modal-wrap:has(.themed-modal.dark-modal) .ant-modal-mask {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Dark mode typography */
.themed-modal.dark-modal .ant-typography,
html.dark .themed-modal.dark-modal .ant-typography {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-typography-secondary,
html.dark .themed-modal.dark-modal .ant-typography-secondary {
  color: #9ca3af !important;
}

.themed-modal.dark-modal .ant-typography.ant-typography-danger,
html.dark .themed-modal.dark-modal .ant-typography.ant-typography-danger {
  color: #ff7875 !important;
}

.themed-modal.dark-modal .ant-typography h1,
.themed-modal.dark-modal .ant-typography h2,
.themed-modal.dark-modal .ant-typography h3,
.themed-modal.dark-modal .ant-typography h4,
.themed-modal.dark-modal .ant-typography h5,
.themed-modal.dark-modal .ant-typography h6,
.themed-modal.dark-modal h1.ant-typography,
.themed-modal.dark-modal h2.ant-typography,
.themed-modal.dark-modal h3.ant-typography,
.themed-modal.dark-modal h4.ant-typography,
.themed-modal.dark-modal h5.ant-typography,
.themed-modal.dark-modal h6.ant-typography,
html.dark .themed-modal.dark-modal .ant-typography h1,
html.dark .themed-modal.dark-modal .ant-typography h2,
html.dark .themed-modal.dark-modal .ant-typography h3,
html.dark .themed-modal.dark-modal .ant-typography h4,
html.dark .themed-modal.dark-modal .ant-typography h5,
html.dark .themed-modal.dark-modal .ant-typography h6,
html.dark .themed-modal.dark-modal h1.ant-typography,
html.dark .themed-modal.dark-modal h2.ant-typography,
html.dark .themed-modal.dark-modal h3.ant-typography,
html.dark .themed-modal.dark-modal h4.ant-typography,
html.dark .themed-modal.dark-modal h5.ant-typography,
html.dark .themed-modal.dark-modal h6.ant-typography {
  color: #f3f4f6 !important;
}

/* Dark mode form elements */
.themed-modal.dark-modal .ant-input,
.themed-modal.dark-modal .ant-input-number,
.themed-modal.dark-modal .ant-input-number-input,
.themed-modal.dark-modal .ant-select-selector,
.themed-modal.dark-modal .ant-input-affix-wrapper,
.themed-modal.dark-modal .ant-picker,
html.dark .themed-modal.dark-modal .ant-input,
html.dark .themed-modal.dark-modal .ant-input-number,
html.dark .themed-modal.dark-modal .ant-input-number-input,
html.dark .themed-modal.dark-modal .ant-select-selector,
html.dark .themed-modal.dark-modal .ant-input-affix-wrapper,
html.dark .themed-modal.dark-modal .ant-picker {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

/* Force Select/InputNumber outer wrappers transparent — prevents white bg behind selector */
.themed-modal.dark-modal .ant-select,
.themed-modal.dark-modal .ant-input-number,
html.dark .themed-modal.dark-modal .ant-select,
html.dark .themed-modal.dark-modal .ant-input-number {
  background-color: transparent !important;
}

/* Fix inner input inside affix-wrapper (prefix/suffix inputs) — prevent double border/bg */
.themed-modal.dark-modal .ant-input-affix-wrapper .ant-input,
html.dark .themed-modal.dark-modal .ant-input-affix-wrapper .ant-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Fix inner search input inside Select — prevent double border/bg */
.themed-modal.dark-modal .ant-select-selection-search-input,
html.dark .themed-modal.dark-modal .ant-select-selection-search-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.themed-modal.dark-modal .ant-input::placeholder,
.themed-modal.dark-modal .ant-input-number-input::placeholder,
html.dark .themed-modal.dark-modal .ant-input::placeholder,
html.dark .themed-modal.dark-modal .ant-input-number-input::placeholder {
  color: #6b7280 !important;
}

.themed-modal.dark-modal .ant-input:hover,
.themed-modal.dark-modal .ant-input-number:hover,
.themed-modal.dark-modal .ant-select-selector:hover,
.themed-modal.dark-modal .ant-input-affix-wrapper:hover,
html.dark .themed-modal.dark-modal .ant-input:hover,
html.dark .themed-modal.dark-modal .ant-input-number:hover,
html.dark .themed-modal.dark-modal .ant-select-selector:hover,
html.dark .themed-modal.dark-modal .ant-input-affix-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Keep inner input clean on wrapper hover */
.themed-modal.dark-modal .ant-input-affix-wrapper:hover .ant-input,
html.dark .themed-modal.dark-modal .ant-input-affix-wrapper:hover .ant-input {
  background: transparent !important;
  border: none !important;
}

.themed-modal.dark-modal .ant-input:focus,
.themed-modal.dark-modal .ant-input-focused,
.themed-modal.dark-modal .ant-input-number:focus,
.themed-modal.dark-modal .ant-input-affix-wrapper-focused,
.themed-modal.dark-modal .ant-select-focused .ant-select-selector {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.themed-modal.dark-modal .ant-input-group-addon {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #a5b4fc !important;
}

/* Dark mode form labels */
.themed-modal.dark-modal .ant-form-item-label > label {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-form-item-extra,
.themed-modal.dark-modal .ant-form-item-explain {
  color: #9ca3af !important;
}

/* Dark mode select dropdown */
.themed-modal.dark-modal .ant-select-dropdown {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.themed-modal.dark-modal .ant-select-item {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-select-item:hover,
.themed-modal.dark-modal .ant-select-item-option-active {
  background: rgba(255, 255, 255, 0.08) !important;
}

.themed-modal.dark-modal .ant-select-item-option-selected {
  background: rgba(99, 102, 241, 0.2) !important;
}

/* Dark mode buttons */
.themed-modal.dark-modal .ant-btn-default {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-btn-default:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* Dark mode switch */
.themed-modal.dark-modal .ant-switch {
  background: rgba(255, 255, 255, 0.2);
}

.themed-modal.dark-modal .ant-switch-checked {
  background: #6366f1 !important;
}

/* Dark mode checkbox */
.themed-modal.dark-modal .ant-checkbox-wrapper {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-checkbox-inner {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.themed-modal.dark-modal .ant-checkbox-checked .ant-checkbox-inner {
  background: #6366f1;
  border-color: #6366f1;
}

/* Dark mode radio */
.themed-modal.dark-modal .ant-radio-wrapper {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-radio-inner {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.themed-modal.dark-modal .ant-radio-checked .ant-radio-inner {
  border-color: #6366f1;
}

.themed-modal.dark-modal .ant-radio-checked .ant-radio-inner::after {
  background: #6366f1;
}

/* Dark mode alerts */
.themed-modal.dark-modal .ant-alert {
  border-radius: 10px;
}

.themed-modal.dark-modal .ant-alert-info {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
}

.themed-modal.dark-modal .ant-alert-warning {
  background: rgba(250, 173, 20, 0.1) !important;
  border-color: rgba(250, 173, 20, 0.2) !important;
}

.themed-modal.dark-modal .ant-alert-error {
  background: rgba(255, 77, 79, 0.1) !important;
  border-color: rgba(255, 77, 79, 0.2) !important;
}

.themed-modal.dark-modal .ant-alert-success {
  background: rgba(82, 196, 26, 0.1) !important;
  border-color: rgba(82, 196, 26, 0.2) !important;
}

/* Dark mode info boxes */
.themed-modal.dark-modal .modal-info-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Dark mode dividers */
.themed-modal.dark-modal .ant-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark mode tabs */
.themed-modal.dark-modal .ant-tabs-tab {
  color: #9ca3af !important;
}

.themed-modal.dark-modal .ant-tabs-tab:hover {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #6366f1 !important;
}

.themed-modal.dark-modal .ant-tabs-ink-bar {
  background: #6366f1 !important;
}

/* Dark mode segmented control */
.themed-modal.dark-modal .ant-segmented {
  background: rgba(255, 255, 255, 0.04) !important;
}

.themed-modal.dark-modal .ant-segmented-item {
  color: #9ca3af !important;
}

.themed-modal.dark-modal .ant-segmented-item:hover {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-segmented-item-selected {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
}

/* Dark mode collapse */
.themed-modal.dark-modal .ant-collapse {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.themed-modal.dark-modal .ant-collapse-header {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-collapse-content {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Dark mode table */
.themed-modal.dark-modal .ant-table {
  background: transparent !important;
}

.themed-modal.dark-modal .ant-table-thead > tr > th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e5e7eb !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.themed-modal.dark-modal .ant-table-tbody > tr > td {
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #d1d5db !important;
}

.themed-modal.dark-modal .ant-table-tbody > tr:hover > td {
  background: rgba(255, 255, 255, 0.04) !important;
}

.themed-modal.dark-modal .ant-table-placeholder {
  background: transparent !important;
}

/* Dark mode empty state */
.themed-modal.dark-modal .ant-empty-description {
  color: #9ca3af !important;
}

/* Dark mode upload dragger */
.themed-modal.dark-modal .ant-upload-drag {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.themed-modal.dark-modal .ant-upload-drag:hover {
  border-color: #6366f1 !important;
}

.themed-modal.dark-modal .ant-upload-text {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-upload-hint {
  color: #9ca3af !important;
}

/* Dark mode progress */
.themed-modal.dark-modal .ant-progress-text {
  color: #e5e7eb !important;
}

/* Dark mode result */
.themed-modal.dark-modal .ant-result-title {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-result-subtitle {
  color: #9ca3af !important;
}

/* Dark mode spin */
.themed-modal.dark-modal .ant-spin-text {
  color: #9ca3af !important;
}

/* Dark mode textarea */
.themed-modal.dark-modal .ant-input-textarea textarea,
.themed-modal.dark-modal textarea.ant-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-input-textarea textarea::placeholder,
.themed-modal.dark-modal textarea.ant-input::placeholder {
  color: #6b7280 !important;
}

.themed-modal.dark-modal .ant-input-textarea textarea:focus,
.themed-modal.dark-modal textarea.ant-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Dark mode input with addons */
.themed-modal.dark-modal .ant-input-group .ant-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-input-group-addon {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #a5b4fc !important;
}

/* Dark mode password input */
.themed-modal.dark-modal .ant-input-password {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.themed-modal.dark-modal .ant-input-password input {
  background: transparent !important;
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-input-password .ant-input-suffix {
  color: #9ca3af !important;
}

.themed-modal.dark-modal .ant-input-password:hover,
.themed-modal.dark-modal .ant-input-password:focus-within {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark mode color picker */
.themed-modal.dark-modal .ant-color-picker-trigger {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.themed-modal.dark-modal .ant-color-picker-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.themed-modal.dark-modal .ant-color-picker-trigger .ant-color-picker-color-block {
  border-radius: 4px;
}

/* Dark mode select — force outer wrapper transparent to prevent double-box */
.themed-modal.dark-modal .ant-select,
html.dark .themed-modal.dark-modal .ant-select {
  background: transparent !important;
  background-color: transparent !important;
}

.themed-modal.dark-modal .ant-select .ant-select-selector {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

.themed-modal.dark-modal .ant-select-selection-item {
  color: #e5e7eb !important;
}

.themed-modal.dark-modal .ant-select:hover .ant-select-selector {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark mode segmented - enhanced */
.themed-modal.dark-modal .ant-segmented {
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 4px !important;
}

.themed-modal.dark-modal .ant-segmented-item {
  color: #9ca3af !important;
  transition: all 0.2s ease !important;
}

.themed-modal.dark-modal .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
  color: #d1d5db !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.themed-modal.dark-modal .ant-segmented-item-selected {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

.themed-modal.dark-modal .ant-segmented-thumb {
  background: rgba(99, 102, 241, 0.2) !important;
}

/* Dark mode text styles - better visibility */
.themed-modal.dark-modal .ant-typography {
  color: #f3f4f6 !important;
}

.themed-modal.dark-modal .ant-typography-secondary {
  color: #a1a1aa !important;
}

.themed-modal.dark-modal .ant-typography strong {
  color: #f9fafb !important;
}

/* Dark mode badge */
.themed-modal.dark-modal .ant-badge {
  color: inherit;
}

/* Dark mode tooltip */
.themed-modal.dark-modal .ant-tooltip-inner {
  background: #1f2937 !important;
  color: #f3f4f6 !important;
}

/* Dark mode scrollbar */
.themed-modal.dark-modal ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.themed-modal.dark-modal ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.themed-modal.dark-modal ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.themed-modal.dark-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Smooth transitions */
.themed-modal .ant-modal-content,
.themed-modal .ant-input,
.themed-modal .ant-btn,
.themed-modal .ant-select-selector {
  transition: all 0.2s ease !important;
}

/* ==================== GLOBAL DARK MODE FOR PORTALS ==================== */
/* These styles apply to dropdowns and popovers that render outside the modal */

/* Dark mode for ColorPicker dropdown */
body:has(.themed-modal.dark-modal) .ant-popover {
  .ant-popover-inner {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .ant-popover-inner-content {
    color: #e5e7eb !important;
  }
}

body:has(.themed-modal.dark-modal) .ant-color-picker-panel {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:has(.themed-modal.dark-modal) .ant-color-picker-panel-inner,
body:has(.themed-modal.dark-modal) .ant-color-picker-panel-inner-content {
  background: #1a1a1a !important;
}

body:has(.themed-modal.dark-modal) .ant-color-picker-presets {
  background: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body:has(.themed-modal.dark-modal) .ant-color-picker-presets-label {
  color: #a1a1aa !important;
}

body:has(.themed-modal.dark-modal) .ant-color-picker-color-block {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body:has(.themed-modal.dark-modal) .ant-color-picker-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

/* Dark mode for Select dropdown in portals */
body:has(.themed-modal.dark-modal) .ant-select-dropdown {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

body:has(.themed-modal.dark-modal) .ant-select-item {
  color: #e5e7eb !important;
}

body:has(.themed-modal.dark-modal) .ant-select-item:hover,
body:has(.themed-modal.dark-modal) .ant-select-item-option-active {
  background: rgba(255, 255, 255, 0.08) !important;
}

body:has(.themed-modal.dark-modal) .ant-select-item-option-selected {
  background: rgba(99, 102, 241, 0.2) !important;
}

body:has(.themed-modal.dark-modal) .ant-select-item-option-selected .ant-select-item-option-content {
  color: #a5b4fc !important;
}


/* ==================== MODAL.CONFIRM() STYLES ==================== */
/* Ant Design Modal.confirm uses .ant-modal-confirm wrapper */

.themed-modal.ant-modal-confirm .ant-modal-content {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-title {
  font-weight: 600;
  font-size: 16px;
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-content {
  font-size: 14px;
  margin-top: 8px;
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  min-width: 80px;
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-primary:not(.ant-btn-dangerous) {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-primary:not(.ant-btn-dangerous):hover {
  background: linear-gradient(135deg, #5558e3 0%, #7c4fea 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-primary.ant-btn-dangerous {
  background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.themed-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-primary.ant-btn-dangerous:hover {
  background: linear-gradient(135deg, #ff7875 0%, #cf1322 100%);
  box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
}

/* Dark mode for Modal.confirm */
.themed-modal.dark-modal.ant-modal-confirm .ant-modal-content {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.9) !important;
}

.themed-modal.dark-modal.ant-modal-confirm .ant-modal-confirm-title {
  color: #f3f4f6 !important;
}

.themed-modal.dark-modal.ant-modal-confirm .ant-modal-confirm-content {
  color: #d1d5db !important;
}

.themed-modal.dark-modal.ant-modal-confirm .ant-modal-body {
  background: #1a1a1a !important;
}

.themed-modal.dark-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-default {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e7eb !important;
}

.themed-modal.dark-modal.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-default:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}


/* =============================================
   Delete Confirm Modal — dcm-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.dcm-root .ant-modal-header,
.dcm-root .ant-modal-footer,
.dcm-root .ant-modal-close { display: none !important; }
.dcm-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.dcm-root.dark-modal .ant-modal-content {
  background: #1e293b !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 25px 60px rgba(0,0,0,.55) !important;
}
.dcm-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.dcm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239,68,68,.06) 0%, rgba(220,38,38,.04) 100%);
  border-bottom: 1px solid rgba(239,68,68,.08);
}
.dcm-header.dark {
  background: linear-gradient(135deg, rgba(239,68,68,.12) 0%, rgba(220,38,38,.06) 100%);
  border-bottom-color: rgba(255,255,255,.06);
}

.dcm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
  flex-shrink: 0;
}

.dcm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.dcm-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.dcm-close-btn:disabled { opacity: .5; cursor: not-allowed; }
.dcm-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.dcm-close-btn.dark:hover { background: rgba(255,255,255,.12); color: #d1d5db; }

/* ── Body ── */
.dcm-body { padding: 20px; }
.dcm-body.dark { background: #1e293b; }

/* ── Warning Box ── */
.dcm-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.12);
  color: #ef4444; font-size: 13px; line-height: 1.5;
}
.dcm-warning-box.dark {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.15);
  color: #fca5a5;
}

/* ── Item Card ── */
.dcm-item-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.dcm-item-card.dark {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08);
}

.dcm-item-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.08); color: #ef4444;
  flex-shrink: 0;
}
.dcm-item-icon.dark {
  background: rgba(239,68,68,.12); color: #fca5a5;
}

/* ── Footer ── */
.dcm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.dcm-footer.dark {
  background: rgba(0,0,0,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top-color: rgba(255,255,255,.06);
}

.dcm-btn-cancel {
  height: 38px; padding: 0 20px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.dcm-btn-cancel:hover:not(:disabled) { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.dcm-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }
.dcm-btn-cancel.dark { border-color: rgba(255,255,255,.1); color: #9ca3af; }
.dcm-btn-cancel.dark:hover:not(:disabled) { border-color: rgba(255,255,255,.18); color: #e5e7eb; background: rgba(255,255,255,.06); }

.dcm-btn-delete {
  height: 38px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.dcm-btn-delete:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(239,68,68,.45);
  transform: translateY(-1px);
}
.dcm-btn-delete:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.dcm-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: dcmSpin .6s linear infinite;
}
@keyframes dcmSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .dcm-header { padding: 14px 16px; }
  .dcm-body { padding: 16px; }
  .dcm-footer { padding: 12px 16px; }
}

/* ============================================
   Bulk Upload Modal — Media Luna
   Mirrors AddMonitorModal design language.
   Only CSS Tailwind can't handle.
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.bum-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.bum-root .ant-modal-header { display: none !important; }
.bum-root .ant-modal-body { padding: 0 !important; }
.bum-root .ant-modal-close { display: none !important; }

/* ── Header ── */
.bum-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.bum-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.bum-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.bum-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.bum-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.bum-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Scrollable body ── */
.bum-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.bum-body::-webkit-scrollbar { width: 4px; }
.bum-body::-webkit-scrollbar-track { background: transparent; }
.bum-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.bum-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.bum-body.dark::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); }
.bum-body.dark::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ── Tab pills ── */
.bum-tab-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 550;
  border: 1.5px solid rgba(0,0,0,0.07); background: #f8f9fb; color: #6b7280;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none;
  outline: none;
}
.bum-tab-pill:hover { border-color: rgba(99,102,241,0.15); color: #6366f1; }
.bum-tab-pill.active { border-color: #6366f1; background: #6366f1; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.bum-tab-pill.dark { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #9ca3af; }
.bum-tab-pill.dark:hover { border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.bum-tab-pill.dark.active { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.4); }

/* ── Upload dragger ── */
.bum-root .bum-dragger .ant-upload-drag {
  border-radius: 12px !important;
  border: 2px dashed rgba(0,0,0,0.08) !important;
  background: linear-gradient(135deg, rgba(99,102,241,0.02) 0%, rgba(139,92,246,0.02) 100%) !important;
  transition: all 0.2s !important;
  padding: 24px 20px !important;
}
.bum-root .bum-dragger .ant-upload-drag:hover {
  border-color: rgba(99,102,241,0.35) !important;
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(139,92,246,0.04) 100%) !important;
}
.bum-upload-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}
.bum-upload-icon .anticon { font-size: 22px; color: #fff; }

/* Dark upload dragger */
.themed-modal.dark-modal .bum-dragger .ant-upload-drag {
  border-color: rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.02) !important;
}
.themed-modal.dark-modal .bum-dragger .ant-upload-drag:hover {
  border-color: rgba(99,102,241,0.4) !important;
  background: rgba(99,102,241,0.06) !important;
}

/* ── Template buttons ── */
.bum-tpl-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 550;
  border: 1.5px solid rgba(0,0,0,0.07); background: #f8f9fb; color: #4b5563;
  cursor: pointer; transition: all 0.15s; outline: none;
}
.bum-tpl-btn:hover { border-color: rgba(99,102,241,0.2); color: #6366f1; background: rgba(99,102,241,0.04); }
.bum-tpl-btn.dark { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #9ca3af; }
.bum-tpl-btn.dark:hover { border-color: rgba(99,102,241,0.3); color: #a5b4fc; background: rgba(99,102,241,0.08); }

/* ── JSON textarea ── */
.bum-root .bum-json-input textarea {
  border-radius: 10px !important;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace !important;
  font-size: 12px !important; line-height: 1.6 !important;
}
.themed-modal.dark-modal .bum-json-input textarea {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #e5e7eb !important;
}
.themed-modal.dark-modal .bum-json-input textarea::placeholder { color: #4b5563 !important; }
.themed-modal.dark-modal .bum-json-input textarea:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 2px rgba(99,102,241,0.2) !important; }

/* ── Parse button ── */
.bum-parse-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 12px; font-weight: 600; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.bum-parse-btn:hover { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 14px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.bum-parse-btn:active { transform: translateY(0); }
.bum-parse-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Collapse ── */
.bum-collapse { border-radius: 10px !important; overflow: hidden; border: 1px solid rgba(0,0,0,0.06) !important; background: transparent !important; }
.bum-collapse .ant-collapse-header { padding: 10px 14px !important; background: rgba(0,0,0,0.015); transition: background 0.15s; }
.bum-collapse .ant-collapse-header:hover { background: rgba(0,0,0,0.03); }
.bum-collapse .ant-collapse-content-box { padding: 14px !important; }

.themed-modal.dark-modal .bum-collapse { border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .bum-collapse .ant-collapse-header { background: rgba(255,255,255,0.02) !important; color: #e5e7eb !important; }
.themed-modal.dark-modal .bum-collapse .ant-collapse-header:hover { background: rgba(255,255,255,0.04) !important; }
.themed-modal.dark-modal .bum-collapse .ant-collapse-content { background: transparent !important; border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .bum-collapse .ant-collapse-expand-icon .anticon { color: #6b7280 !important; }

/* ── Count badge ── */
.bum-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff; font-size: 11px; font-weight: 700;
}

/* ── Skip toggle ── */
.bum-skip-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 7px;
  background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer; transition: all 0.15s; outline: none; border-width: 0;
}
.bum-skip-toggle:hover { background: rgba(0,0,0,0.04); }
.bum-skip-toggle input[type="checkbox"] { accent-color: #6366f1; width: 13px; height: 13px; }
.bum-skip-toggle.dark { background: rgba(255,255,255,0.03); }
.bum-skip-toggle.dark:hover { background: rgba(255,255,255,0.06); }

/* ── Result stats ── */
.bum-stat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 650;
}
.bum-stat.total { background: rgba(99,102,241,0.06); color: #6366f1; border: 1px solid rgba(99,102,241,0.12); }
.bum-stat.success { background: rgba(16,185,129,0.06); color: #10b981; border: 1px solid rgba(16,185,129,0.12); }
.bum-stat.failed { background: rgba(239,68,68,0.06); color: #ef4444; border: 1px solid rgba(239,68,68,0.12); }

.themed-modal.dark-modal .bum-stat.total { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.2); color: #a5b4fc; }
.themed-modal.dark-modal .bum-stat.success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #34d399; }
.themed-modal.dark-modal .bum-stat.failed { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #f87171; }

/* ── Reference tables ── */
.bum-ref-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 8px; overflow: hidden; font-size: 12px; margin-bottom: 0;
  border: 1px solid rgba(0,0,0,0.06);
}
.bum-ref-table th {
  padding: 7px 12px; text-align: left; background: #f9fafb;
  font-weight: 650; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
  border-bottom: 1px solid #e5e7eb; color: #6b7280;
}
.bum-ref-table td { padding: 5px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.bum-ref-table tr:last-child td { border-bottom: none; }

.bum-code {
  background: rgba(99,102,241,0.06); padding: 1px 5px; border-radius: 4px;
  font-size: 10.5px; font-family: 'SF Mono', 'Fira Code', monospace; color: #6366f1;
}

.themed-modal.dark-modal .bum-ref-table { border-color: rgba(255,255,255,0.06); }
.themed-modal.dark-modal .bum-ref-table th { background: rgba(255,255,255,0.04); border-bottom-color: rgba(255,255,255,0.08); color: #9ca3af; }
.themed-modal.dark-modal .bum-ref-table td { border-bottom-color: rgba(255,255,255,0.04); color: #d1d5db; }
.themed-modal.dark-modal .bum-ref-table tr:hover td { background: rgba(255,255,255,0.02); }
.themed-modal.dark-modal .bum-code { background: rgba(99,102,241,0.12); color: #a5b4fc; }

/* ── Table overrides ── */
.bum-root .ant-table { border-radius: 10px !important; overflow: hidden; }
.bum-root .ant-table-thead > tr > th {
  font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.4px; padding: 7px 12px;
}
.bum-root .ant-table-tbody > tr > td { padding: 7px 12px; font-size: 12px; }

.themed-modal.dark-modal .bum-root .ant-table { background: transparent !important; }
.themed-modal.dark-modal .bum-root .ant-table-thead > tr > th { background: rgba(255,255,255,0.04) !important; color: #9ca3af !important; border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .bum-root .ant-table-tbody > tr > td { border-color: rgba(255,255,255,0.04) !important; color: #d1d5db !important; }
.themed-modal.dark-modal .bum-root .ant-table-tbody > tr:hover > td { background: rgba(255,255,255,0.03) !important; }
.themed-modal.dark-modal .bum-root .ant-table-placeholder { background: transparent !important; }
.themed-modal.dark-modal .bum-root .ant-table-cell .ant-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }

/* Pagination */
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-item { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.1) !important; }
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-item a { color: #d1d5db !important; }
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-item-active { background: rgba(99,102,241,0.15) !important; border-color: #6366f1 !important; }
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-item-active a { color: #a5b4fc !important; }
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-prev .ant-pagination-item-link,
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-next .ant-pagination-item-link { color: #9ca3af !important; background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.1) !important; }
.themed-modal.dark-modal .bum-root .ant-pagination .ant-pagination-disabled .ant-pagination-item-link { color: #4b5563 !important; }
.themed-modal.dark-modal .bum-root .ant-empty-description { color: #6b7280 !important; }

/* ── Loading overlay ── */
.bum-loading-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; z-index: 1000; border-radius: 0;
}
.themed-modal.dark-modal .bum-loading-overlay {
  background: rgba(30,41,59,0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.themed-modal.dark-modal .bum-loading-overlay .ant-typography { color: #9ca3af !important; }

/* ── Footer ── */
.bum-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.bum-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}
.bum-btn-cancel {
  padding: 7px 18px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.bum-btn-cancel:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.bum-btn-cancel.dark { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.bum-btn-cancel.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }
.bum-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.bum-btn-submit:hover { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.bum-btn-submit:active { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.bum-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .bum-header { padding: 14px 16px 12px; }
  .bum-body { padding: 14px 16px 8px; }
  .bum-footer { padding: 12px 16px; }
}

/* ============================================
   Smart Discovery Modal — Media Luna
   Mirrors AddMonitorModal / BulkUpload design.
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.sdm-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.sdm-root .ant-modal-header { display: none !important; }
.sdm-root .ant-modal-body { padding: 0 !important; }
.sdm-root .ant-modal-close { display: none !important; }

/* ── Header ── */
.sdm-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.sdm-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.sdm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.sdm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.sdm-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.sdm-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Step Indicator ── */
.sdm-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 12px 24px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sdm-steps.dark { border-bottom-color: rgba(255,255,255,0.06); }

.sdm-step {
  display: flex; flex-direction: column; align-items: center;
  position: relative; flex: 1 1;
}
.sdm-step-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; background: #f3f4f6; color: #9ca3af;
  transition: all 0.25s; border: 1.5px solid transparent;
}
.sdm-step.active .sdm-step-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff; box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.sdm-step.completed .sdm-step-icon {
  background: rgba(99,102,241,0.08); color: #6366f1; border-color: rgba(99,102,241,0.2);
}
.sdm-step-label {
  font-size: 9px; font-weight: 600; margin-top: 4px; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.sdm-step.active .sdm-step-label { color: #6366f1; }
.sdm-step.completed .sdm-step-label { color: #6366f1; }

.sdm-step-connector {
  position: absolute; top: 15px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 2px; background: #e5e7eb;
  transition: background 0.25s;
}
.sdm-step.completed .sdm-step-connector,
.sdm-step.active .sdm-step-connector { background: linear-gradient(90deg, #6366f1, #c7d2fe); }

/* Dark step indicator */
.sdm-steps.dark .sdm-step-icon { background: rgba(255,255,255,0.05); color: #6b7280; }
.sdm-steps.dark .sdm-step.completed .sdm-step-icon { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.25); }
.sdm-steps.dark .sdm-step-label { color: #6b7280; }
.sdm-steps.dark .sdm-step.active .sdm-step-label { color: #a5b4fc; }
.sdm-steps.dark .sdm-step.completed .sdm-step-label { color: #a5b4fc; }
.sdm-steps.dark .sdm-step-connector { background: rgba(255,255,255,0.08); }

/* ── Scrollable body ── */
.sdm-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 180px);
  overflow-y: auto; overflow-x: hidden;
}
.sdm-body::-webkit-scrollbar { width: 4px; }
.sdm-body::-webkit-scrollbar-track { background: transparent; }
.sdm-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.sdm-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.sdm-body.dark::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); }
.sdm-body.dark::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ── Label ── */
.sdm-label {
  display: block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; margin-bottom: 6px;
}
.sdm-label.dark { color: #9ca3af; }

/* ── Hero icon ── */
.sdm-hero-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(99,102,241,0.28);
}

/* ── Toggle chips ── */
.sdm-toggle {
  flex: 1 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 12px; border-radius: 9px;
  border: 1.5px solid rgba(0,0,0,0.07); background: #f8f9fb;
  font-size: 12px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none; outline: none;
}
.sdm-toggle:hover { border-color: rgba(99,102,241,0.15); color: #6366f1; }
.sdm-toggle.active { border-color: #6366f1; background: rgba(99,102,241,0.06); color: #6366f1; box-shadow: 0 0 0 2.5px rgba(99,102,241,0.08); }
.sdm-toggle.dark { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #9ca3af; }
.sdm-toggle.dark:hover { border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.sdm-toggle.dark.active { border-color: #6366f1; background: rgba(99,102,241,0.1); color: #a5b4fc; box-shadow: 0 0 0 2.5px rgba(99,102,241,0.12); }

/* ── Collapse ── */
.sdm-collapse { border-radius: 10px !important; overflow: hidden; border: 1px solid rgba(0,0,0,0.06) !important; background: transparent !important; }
.sdm-collapse .ant-collapse-header { padding: 10px 14px !important; background: rgba(0,0,0,0.015); transition: background 0.15s; }
.sdm-collapse .ant-collapse-header:hover { background: rgba(0,0,0,0.03); }
.sdm-collapse .ant-collapse-content-box { padding: 14px !important; }

.themed-modal.dark-modal .sdm-collapse { border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .sdm-collapse .ant-collapse-header { background: rgba(255,255,255,0.02) !important; color: #e5e7eb !important; }
.themed-modal.dark-modal .sdm-collapse .ant-collapse-header:hover { background: rgba(255,255,255,0.04) !important; }
.themed-modal.dark-modal .sdm-collapse .ant-collapse-content { background: transparent !important; border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .sdm-collapse .ant-collapse-expand-icon .anticon { color: #6b7280 !important; }

/* Slider dark overrides */
.themed-modal.dark-modal .sdm-collapse .ant-slider-rail { background: rgba(255,255,255,0.08) !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-track { background: #6366f1 !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-handle { border-color: #6366f1 !important; background: #1e293b !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-handle:hover,
.themed-modal.dark-modal .sdm-collapse .ant-slider-handle:focus { border-color: #818cf8 !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-mark-text { color: #6b7280 !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-mark-text-active { color: #a5b4fc !important; }
.themed-modal.dark-modal .sdm-collapse .ant-slider-dot { border-color: rgba(255,255,255,0.15) !important; background: #1e293b !important; }

/* ── Scanning animation ── */
.sdm-scan-animation {
  position: relative; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
}
.sdm-scan-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #6366f1; border-right-color: #8b5cf6;
  animation: sdmSpin 1.2s linear infinite;
}
.sdm-scan-ring.delay {
  inset: 8px;
  border-top-color: #a5b4fc; border-right-color: #c7d2fe;
  animation-direction: reverse; animation-duration: 1.6s;
}
.sdm-scan-icon { font-size: 26px; color: #6366f1; z-index: 1; animation: sdmPulse 2s ease-in-out infinite; }
.sdm-scan-icon.creating { animation: sdmSpin 3s linear infinite; }

@keyframes sdmSpin { to { transform: rotate(360deg); } }
@keyframes sdmPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.92); } }

/* Dark scanning */
.themed-modal.dark-modal .sdm-scan-icon { color: #a5b4fc; }
.themed-modal.dark-modal .sdm-scan-ring { border-top-color: #818cf8; border-right-color: #a5b4fc; }
.themed-modal.dark-modal .sdm-scan-ring.delay { border-top-color: rgba(165,180,252,0.4); border-right-color: rgba(199,210,254,0.3); }

/* ── Results summary ── */
.sdm-summary {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 20px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(139,92,246,0.04) 100%);
  border: 1px solid rgba(99,102,241,0.1);
}
.sdm-summary.dark {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.06) 100%);
  border-color: rgba(99,102,241,0.15);
}
.sdm-summary-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sdm-summary-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; }
.sdm-summary-divider { width: 1px; height: 26px; background: rgba(99,102,241,0.15); }
.sdm-summary.dark .sdm-summary-divider { background: rgba(255,255,255,0.08); }

/* ── Text button (Select All / Clear) ── */
.sdm-text-btn {
  background: none; border: none; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 550; color: #6366f1;
  cursor: pointer; transition: all 0.12s; outline: none;
}
.sdm-text-btn:hover { background: rgba(99,102,241,0.06); }
.sdm-text-btn.dark { color: #818cf8; }
.sdm-text-btn.dark:hover { background: rgba(99,102,241,0.1); color: #a5b4fc; }

/* ── Discovery items ── */
.sdm-items-list { max-height: 240px; overflow-y: auto; }
.sdm-items-list::-webkit-scrollbar { width: 4px; }
.sdm-items-list::-webkit-scrollbar-track { background: transparent; }
.sdm-items-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 2px; }
.sdm-items-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.12); }

.sdm-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  transition: all 0.15s; border: 1.5px solid transparent; margin-bottom: 3px;
}
.sdm-item:hover { background: rgba(99,102,241,0.03); border-color: rgba(99,102,241,0.1); }
.sdm-item.selected { background: rgba(99,102,241,0.05); border-color: rgba(99,102,241,0.18); }

/* Dark items */
.sdm-item.dark:hover { background: rgba(255,255,255,0.03); border-color: rgba(99,102,241,0.15); }
.sdm-item.dark.selected { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.25); }

/* Dark item checkbox */
.themed-modal.dark-modal .sdm-item .ant-checkbox-inner { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.themed-modal.dark-modal .sdm-item .ant-checkbox-checked .ant-checkbox-inner { background: #6366f1; border-color: #6366f1; }

/* Dark item tags */
.themed-modal.dark-modal .sdm-item .ant-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #d1d5db; }

/* Dark item progress circle */
.themed-modal.dark-modal .sdm-item .ant-progress-text,
.themed-modal.dark-modal .sdm-item .ant-progress-text span { color: #d1d5db !important; }

/* Dark items-list scrollbar */
.themed-modal.dark-modal .sdm-items-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); }
.themed-modal.dark-modal .sdm-items-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ── Complete icon ── */
.sdm-complete-icon {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sdm-complete-icon.success { background: rgba(16,185,129,0.08); color: #10b981; }
.sdm-complete-icon.warning { background: rgba(245,158,11,0.08); color: #f59e0b; }
.themed-modal.dark-modal .sdm-complete-icon.success { background: rgba(16,185,129,0.12); color: #34d399; }
.themed-modal.dark-modal .sdm-complete-icon.warning { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* ── Footer ── */
.sdm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.sdm-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}
.sdm-btn-cancel {
  padding: 7px 18px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.sdm-btn-cancel:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.sdm-btn-cancel.dark { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.sdm-btn-cancel.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }
.sdm-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.sdm-btn-submit:hover { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.sdm-btn-submit:active { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.sdm-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Ant overrides ── */
.sdm-root .ant-input,
.sdm-root .ant-input-affix-wrapper,
.sdm-root .ant-select-selector { border-radius: 10px !important; }

.sdm-root .ant-input-affix-wrapper .ant-input { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .sdm-header { padding: 14px 16px 12px; }
  .sdm-body { padding: 14px 16px 8px; }
  .sdm-footer { padding: 12px 16px; }
  .sdm-steps { padding: 10px 16px 12px; }
}

/* ============================================
   Sidebar
   ============================================ */

.sb-root {
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #fff;
  background: var(--ml-surface, #fff);
  border-right: 1px solid #f3f4f6;
  border-right: 1px solid var(--ml-border-light, #f3f4f6);
  transition: width 0.2s ease, transform 0.3s ease;
  overflow: hidden;
}

.sb-root.expanded { width: 256px; }
.sb-root.collapsed { width: 80px; }

/* ─── Logo / brand ─── */

.sb-brand {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.sb-brand:hover {
  opacity: 0.85;
}

.sb-root.collapsed .sb-brand {
  padding: 20px 16px;
  justify-content: center;
}

.sb-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.sb-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
  line-height: 1.15;
  white-space: nowrap;
}

.sb-brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
  color: var(--ml-text-tertiary, #9ca3af);
  white-space: nowrap;
}

/* ─── Navigation list ─── */

.sb-nav {
  flex: 1 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sb-nav:hover {
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.12s;
  text-align: left;
  margin-bottom: 2px;
  position: relative;
  white-space: nowrap;
}

.sb-nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.sb-nav-item.active {
  background: #eef2ff;
  background: var(--ml-primary-light, #eef2ff);
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
  font-weight: 600;
}

.sb-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: #6366f1;
  background: var(--ml-primary, #6366f1);
}

.sb-nav-icon {
  font-size: 17px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 0.12s;
}

.sb-nav-item:hover .sb-nav-icon {
  color: #6b7280;
}

.sb-nav-item.active .sb-nav-icon {
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
}

.sb-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Collapsed: center icons, hide labels */
.sb-root.collapsed .sb-nav-item {
  justify-content: center;
  padding: 10px;
}

.sb-root.collapsed .sb-nav-label {
  display: none;
}

.sb-root.collapsed .sb-nav-item.active::before {
  height: 16px;
}

/* Submenu group */
.sb-nav-group {
  margin-bottom: 2px;
}

.sb-nav-group-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.12s;
  text-align: left;
  white-space: nowrap;
}

.sb-nav-group-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.sb-nav-group-btn .sb-nav-icon {
  font-size: 17px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
}

.sb-nav-group-btn:hover .sb-nav-icon {
  color: #6b7280;
}

.sb-group-chevron {
  font-size: 10px;
  color: #d1d5db;
  margin-left: auto;
  transition: transform 0.2s;
}

.sb-group-chevron.open {
  transform: rotate(90deg);
}

.sb-nav-group-children {
  padding-left: 22px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.sb-nav-group-children.open {
  max-height: 200px;
  opacity: 1;
}

.sb-nav-group-children .sb-nav-item {
  padding: 8px 14px;
  font-size: 12px;
}

.sb-nav-group-children .sb-nav-icon {
  font-size: 14px;
  width: 18px;
}

/* Collapsed group hides children */
.sb-root.collapsed .sb-nav-group-btn {
  justify-content: center;
  padding: 10px;
}

.sb-root.collapsed .sb-nav-group-btn .sb-nav-label,
.sb-root.collapsed .sb-group-chevron {
  display: none;
}

.sb-root.collapsed .sb-nav-group-children {
  display: none;
}

/* Divider */
.sb-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 8px 14px;
}

/* ─── Collapse toggle ─── */

.sb-collapse-wrap {
  padding: 4px 10px;
  flex-shrink: 0;
}

.sb-collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border-radius: var(--ml-radius, 10px);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--ml-border, #e5e7eb);
  background: #f9fafb;
  background: var(--ml-surface-secondary, #f9fafb);
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  color: var(--ml-text-secondary, #6b7280);
  transition: all 0.15s;
  transition: all var(--ml-transition-fast, 0.15s);
}

.sb-collapse-btn:hover {
  background: #eef2ff;
  background: var(--ml-primary-light, #eef2ff);
  border-color: #c7d2fe;
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
}

.sb-collapse-label {
  font-size: 12px;
  font-weight: 600;
}

/* ─── Footer ─── */

.sb-footer {
  padding: 14px 16px;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  font-size: 12px;
  color: #6b7280;
}

.sb-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
}

.sb-status-text {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

.sb-footer-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  padding-left: 15px;
}

.sb-footer-link {
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
}

.sb-footer-link:hover {
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
}

.sb-root.collapsed .sb-footer {
  display: flex;
  justify-content: center;
  padding: 14px 8px;
}

.sb-root.collapsed .sb-footer-links,
.sb-root.collapsed .sb-status-text {
  display: none;
}

/* ============================================
   Dark Mode
   ============================================ */

.sb-root.dark {
  background: #111827;
  border-right-color: rgba(55, 65, 81, 0.5);
}

.sb-root.dark .sb-brand-name {
  color: #a5b4fc;
}

.sb-root.dark .sb-brand-sub {
  color: #6b7280;
}

.sb-root.dark .sb-nav-item {
  color: #9ca3af;
}

.sb-root.dark .sb-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
}

.sb-root.dark .sb-nav-item.active {
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
}

.sb-root.dark .sb-nav-item.active::before {
  background: #818cf8;
}

.sb-root.dark .sb-nav-icon {
  color: #6b7280;
}

.sb-root.dark .sb-nav-item:hover .sb-nav-icon {
  color: #9ca3af;
}

.sb-root.dark .sb-nav-item.active .sb-nav-icon {
  color: #818cf8;
}

.sb-root.dark .sb-nav-group-btn {
  color: #9ca3af;
}

.sb-root.dark .sb-nav-group-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
}

.sb-root.dark .sb-nav-group-btn .sb-nav-icon {
  color: #6b7280;
}

.sb-root.dark .sb-group-chevron {
  color: #4b5563;
}

.sb-root.dark .sb-divider {
  background: #1f2937;
}

.sb-root.dark .sb-collapse-btn {
  background: rgba(255,255,255,0.04);
  border-color: #374151;
  color: #9ca3af;
}

.sb-root.dark .sb-collapse-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
  color: #a5b4fc;
}

.sb-root.dark .sb-footer {
  border-top-color: #1f2937;
}

.sb-root.dark .sb-status-text {
  color: #6b7280;
}

.sb-root.dark .sb-footer-link {
  color: #6b7280;
}

.sb-root.dark .sb-footer-link:hover {
  color: #a5b4fc;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 1023px) {
  .sb-root {
    transform: translateX(-100%);
  }

  .sb-root.mobile-open {
    transform: translateX(0);
    width: 256px;
  }

  .sb-collapse-wrap {
    display: none;
  }
}

/* ============================================
   Layout Header Bar
   ============================================ */

.layout-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid #f3f4f6;
  border-bottom: 1px solid var(--ml-border-light, #f3f4f6);
  transition: background 0.2s, border-color 0.2s;
  transition: background var(--ml-transition, 0.2s), border-color var(--ml-transition, 0.2s);
}

.layout-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ─── Left: page icon + title ─── */

.lh-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1;
  min-width: 0;
}

.lh-page-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  background: var(--ml-primary-light, #eef2ff);
  color: #6366f1;
  color: var(--ml-primary, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.lh-title-group {
  min-width: 0;
  flex: 1 1;
}

.lh-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lh-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Right: user pill ─── */

.lh-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lh-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 50px;
  background: #f9fafb;
  background: var(--ml-surface-secondary, #f9fafb);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--ml-border, #e5e7eb);
  cursor: pointer;
  transition: all 0.2s;
  transition: all var(--ml-transition, 0.2s);
  flex-shrink: 0;
}

.lh-user-pill:hover {
  background: #f3f4f6;
  background: var(--ml-surface-tertiary, #f3f4f6);
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  box-shadow: var(--ml-shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}

.lh-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.lh-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lh-chevron {
  font-size: 10px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* ─── Theme toggle (in dropdown) ─── */

.lh-theme-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
}

.lh-theme-btn {
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(0,0,0,0.55);
  border: none;
  font-size: 14px;
  line-height: 1;
}

.lh-theme-btn.active {
  background: #6366f1;
  background: var(--ml-primary, #6366f1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.lh-theme-btn:not(.active):hover {
  background: rgba(0,0,0,0.06);
}

/* ─── Mobile hamburger ─── */

.lh-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  color: #374151;
  transition: all 0.15s;
}

.lh-hamburger:hover {
  background: #f3f4f6;
}

/* ─── Dark mode ─── */

.layout-header.dark {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom-color: rgba(55, 65, 81, 0.6);
}

.dark .lh-page-icon {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.2);
  color: #a5b4fc;
}

.dark .lh-title {
  color: #f3f4f6;
}

.dark .lh-subtitle {
  color: #9ca3af;
}

.dark .lh-user-pill {
  background: rgba(255,255,255,0.06);
  border-color: #374151;
}

.dark .lh-user-pill:hover {
  background: rgba(255,255,255,0.1);
  border-color: #4b5563;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dark .lh-user-name {
  color: #e5e7eb;
}

.dark .lh-chevron {
  color: #6b7280;
}

.dark .lh-theme-toggle {
  background: rgba(255,255,255,0.08);
}

.dark .lh-theme-btn {
  color: rgba(255,255,255,0.55);
}

.dark .lh-theme-btn:not(.active):hover {
  background: rgba(255,255,255,0.1);
}

.dark .lh-hamburger {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}

.dark .lh-hamburger:hover {
  background: #253042;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .layout-header {
    padding: 0 14px;
    height: 56px;
  }

  .lh-page-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 15px;
  }

  .lh-title {
    font-size: 16px;
  }

  .lh-subtitle {
    font-size: 11px;
  }

  .lh-user-name {
    display: none;
  }

  .lh-user-pill {
    padding: 4px 10px 4px 4px;
  }

  .lh-hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .lh-page-icon {
    display: none;
  }
}


/* ============================================
   User Dropdown Panel
   ============================================ */

.lh-right {
  position: relative;
}

.lh-chevron.open {
  transform: rotate(180deg);
}

.lh-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #fff;
  background: var(--ml-surface, #fff);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--ml-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  box-shadow: var(--ml-shadow-lg, 0 12px 40px rgba(0,0,0,0.10));
  z-index: 1000;
  overflow: hidden;
  animation: lhd-fade-in 0.15s ease-out;
}

@keyframes lhd-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Identity header ─── */

.lhd-identity {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.lhd-avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 14px !important;
  flex-shrink: 0;
}

.lhd-identity-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1;
}

.lhd-identity-name {
  font-size: 14px;
  font-weight: 650;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lhd-identity-email {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lhd-role {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  position: absolute;
  top: 12px;
  right: 14px;
}

.lhd-role.lh-role-admin {
  background: #eef2ff;
  color: #4f46e5;
}

.lhd-role.lh-role-editor {
  background: #eff6ff;
  color: #2563eb;
}

.lhd-role.lh-role-viewer {
  background: #f3f4f6;
  color: #6b7280;
}

/* ─── Divider ─── */

.lhd-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 0;
}

/* ─── Sections & items ─── */

.lhd-section {
  padding: 6px 8px;
}

.lhd-section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  padding: 4px 10px 6px;
}

.lhd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.12s;
  text-align: left;
  line-height: 1.3;
}

.lhd-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.lhd-item-icon {
  font-size: 15px;
  color: #6b7280;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.12s;
}

.lhd-item:hover .lhd-item-icon {
  color: #6366f1;
}

.lhd-item-external {
  font-size: 10px;
  color: #d1d5db;
  margin-left: auto;
}

/* Danger (logout) */
.lhd-item.lhd-danger {
  color: #dc2626;
}

.lhd-item.lhd-danger .lhd-item-icon {
  color: #dc2626;
}

.lhd-item.lhd-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.lhd-item.lhd-danger:hover .lhd-item-icon {
  color: #b91c1c;
}

/* ─── Theme toggle (overrides for inside dropdown) ─── */

.lhd-section .lh-theme-toggle {
  width: 100%;
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
  background: #f3f4f6;
}

.lhd-section .lh-theme-btn {
  flex: 1 1;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 8px;
}

.lh-theme-label {
  font-size: 11px;
  font-weight: 600;
}

/* ─── Dropdown dark mode ─── */

.lh-dropdown.dark {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.15);
}

.lh-dropdown.dark .lhd-identity-name {
  color: #f3f4f6;
}

.lh-dropdown.dark .lhd-identity-email {
  color: #9ca3af;
}

.lh-dropdown.dark .lhd-role.lh-role-admin {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
}

.lh-dropdown.dark .lhd-role.lh-role-editor {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
}

.lh-dropdown.dark .lhd-role.lh-role-viewer {
  background: rgba(107,114,128,0.15);
  color: #9ca3af;
}

.lh-dropdown.dark .lhd-divider {
  background: #374151;
}

.lh-dropdown.dark .lhd-section-label {
  color: #6b7280;
}

.lh-dropdown.dark .lhd-item {
  color: #d1d5db;
}

.lh-dropdown.dark .lhd-item:hover {
  background: rgba(255,255,255,0.06);
  color: #f3f4f6;
}

.lh-dropdown.dark .lhd-item-icon {
  color: #9ca3af;
}

.lh-dropdown.dark .lhd-item:hover .lhd-item-icon {
  color: #a5b4fc;
}

.lh-dropdown.dark .lhd-item-external {
  color: #4b5563;
}

.lh-dropdown.dark .lhd-item.lhd-danger {
  color: #f87171;
}

.lh-dropdown.dark .lhd-item.lhd-danger .lhd-item-icon {
  color: #f87171;
}

.lh-dropdown.dark .lhd-item.lhd-danger:hover {
  background: rgba(220,38,38,0.1);
  color: #fca5a5;
}

.lh-dropdown.dark .lhd-item.lhd-danger:hover .lhd-item-icon {
  color: #fca5a5;
}

.lh-dropdown.dark .lhd-section .lh-theme-toggle {
  background: rgba(255,255,255,0.06);
}

/* ─── Dropdown responsive ─── */

@media (max-width: 480px) {
  .lh-dropdown {
    width: 260px;
    right: -8px;
  }
}

/* ============================================
   Shared Stat Card Component
   ============================================ */

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .stat-cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-cards-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-cards-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stat-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .stat-cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-cards-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .stat-cards-grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ─── Base card ─── */

.stat-card {
  position: relative;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.08);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05),
              0 1px 2px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  height: 100%;
}

.stat-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1),
              0 2px 6px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12),
              0 2px 6px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-card.selected {
  border-width: 2px;
}

/* ─── Top row: icon + label ─── */

.sc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.stat-card.clickable:hover .sc-icon {
  transform: scale(1.08);
}

.sc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* ─── Value row ─── */

.sc-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sc-value {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.sc-value .unit {
  font-size: 15px;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 1px;
}

.sc-sub {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}

/* ─── Optional extra (plan limit bar, etc) ─── */

.sc-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sc-extra-label {
  font-size: 10px;
  color: #9ca3af;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-progress-bar {
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: #f3f4f6;
  overflow: hidden;
}

.sc-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.sc-progress-fill.normal { background: #6366f1; }
.sc-progress-fill.warning { background: #f59e0b; }
.sc-progress-fill.danger { background: #ef4444; }

/* ============================================
   Color Variants
   ============================================ */

/* Blue (default) */
.stat-card.color-blue .sc-icon { background: #eef2ff; color: #6366f1; }
.stat-card.color-blue .sc-label { color: #6366f1; }
.stat-card.color-blue.selected { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }

/* Green */
.stat-card.color-green .sc-icon { background: #ecfdf5; color: #059669; }
.stat-card.color-green .sc-label { color: #059669; }
.stat-card.color-green.selected { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.12); }

/* Red */
.stat-card.color-red .sc-icon { background: #fef2f2; color: #dc2626; }
.stat-card.color-red .sc-label { color: #dc2626; }
.stat-card.color-red.selected { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.stat-card.color-red .sc-value.highlight { color: #dc2626; }

/* Orange */
.stat-card.color-orange .sc-icon { background: #fff7ed; color: #ea580c; }
.stat-card.color-orange .sc-label { color: #ea580c; }
.stat-card.color-orange.selected { border-color: #ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }
.stat-card.color-orange .sc-value.highlight { color: #ea580c; }

/* Yellow */
.stat-card.color-yellow .sc-icon { background: #fefce8; color: #ca8a04; }
.stat-card.color-yellow .sc-label { color: #ca8a04; }
.stat-card.color-yellow.selected { border-color: #ca8a04; box-shadow: 0 0 0 3px rgba(202,138,4,0.12); }
.stat-card.color-yellow .sc-value.highlight { color: #ca8a04; }

/* Purple */
.stat-card.color-purple .sc-icon { background: #f5f3ff; color: #7c3aed; }
.stat-card.color-purple .sc-label { color: #7c3aed; }
.stat-card.color-purple.selected { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }

/* ============================================
   Dark Mode
   ============================================ */

html.dark .stat-card {
  background: linear-gradient(145deg, #1e293b 0%, #151d2e 100%);
  border-color: rgba(148, 163, 184, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              0 1px 2px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dark .stat-card:hover {
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(99, 102, 241, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .stat-card.clickable:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(99, 102, 241, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .sc-value { color: #f3f4f6; }
html.dark .sc-value .unit { color: #6b7280; }
html.dark .sc-sub { color: #9ca3af; }
html.dark .sc-extra-label { color: #6b7280; }
html.dark .sc-progress-bar { background: #374151; }

/* Dark color variants */
html.dark .stat-card.color-blue .sc-icon { background: rgba(99,102,241,0.12); color: #a5b4fc; }
html.dark .stat-card.color-blue .sc-label { color: #a5b4fc; }
html.dark .stat-card.color-blue.selected { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

html.dark .stat-card.color-green .sc-icon { background: rgba(16,185,129,0.12); color: #6ee7b7; }
html.dark .stat-card.color-green .sc-label { color: #6ee7b7; }
html.dark .stat-card.color-green.selected { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }

html.dark .stat-card.color-red .sc-icon { background: rgba(239,68,68,0.12); color: #fca5a5; }
html.dark .stat-card.color-red .sc-label { color: #fca5a5; }
html.dark .stat-card.color-red.selected { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
html.dark .stat-card.color-red .sc-value.highlight { color: #f87171; }

html.dark .stat-card.color-orange .sc-icon { background: rgba(249,115,22,0.12); color: #fdba74; }
html.dark .stat-card.color-orange .sc-label { color: #fdba74; }
html.dark .stat-card.color-orange.selected { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.15); }
html.dark .stat-card.color-orange .sc-value.highlight { color: #fb923c; }

html.dark .stat-card.color-yellow .sc-icon { background: rgba(234,179,8,0.12); color: #fde047; }
html.dark .stat-card.color-yellow .sc-label { color: #fde047; }
html.dark .stat-card.color-yellow.selected { border-color: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,0.15); }
html.dark .stat-card.color-yellow .sc-value.highlight { color: #facc15; }

html.dark .stat-card.color-purple .sc-icon { background: rgba(139,92,246,0.12); color: #c4b5fd; }
html.dark .stat-card.color-purple .sc-label { color: #c4b5fd; }
html.dark .stat-card.color-purple.selected { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .stat-card {
    padding: 14px;
    gap: 10px;
  }

  .sc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
  }

  .sc-value {
    font-size: 22px;
  }
}

/* ── OnboardingChecklist ─────────────────────────────────────────── */

.onboarding-checklist {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  animation: onb-slide-in 0.4s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.onboarding-checklist.dark {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.onboarding-checklist.dismissing {
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes onb-slide-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Header ────────────────────────────────────────────────────── */

.onb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.onb-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onb-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.onb-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

.dark .onb-title {
  color: #f3f4f6;
}

.onb-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 2px 0 0;
  line-height: 1.3;
}

.dark .onb-subtitle {
  color: #9ca3af;
}

.onb-dismiss {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.onb-dismiss:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

.dark .onb-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

/* ── Progress ──────────────────────────────────────────────────── */

.onb-progress {
  height: 3px;
  background: rgba(99, 102, 241, 0.1);
  margin: 0 20px 4px;
  border-radius: 4px;
  overflow: hidden;
}

.dark .onb-progress {
  background: rgba(99, 102, 241, 0.15);
}

.onb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ── Steps ─────────────────────────────────────────────────────── */

.onb-steps {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.onb-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.onb-step:not(.completed) {
  cursor: pointer;
}

.onb-step:not(.completed):hover {
  background: rgba(99, 102, 241, 0.06);
}

.dark .onb-step:not(.completed):hover {
  background: rgba(99, 102, 241, 0.1);
}

.onb-step.completed {
  opacity: 0.6;
}

/* Step icon */
.onb-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  transition: all 0.2s ease;
}

.dark .onb-step-icon {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.onb-step-icon.done {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.dark .onb-step-icon.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Step content */
.onb-step-content {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.onb-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.dark .onb-step-title {
  color: #f3f4f6;
}

.onb-step-title.done {
  text-decoration: line-through;
  color: #9ca3af;
}

.dark .onb-step-title.done {
  color: #6b7280;
}

.onb-step-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.dark .onb-step-desc {
  color: #9ca3af;
}

/* Step action button */
.onb-step-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .onb-step-action {
  color: #818cf8;
}

.onb-step-done-label {
  font-size: 12px;
  font-weight: 500;
  color: #10b981;
  flex-shrink: 0;
}

.dark .onb-step-done-label {
  color: #34d399;
}

/* ── Footer ────────────────────────────────────────────────────── */

.onb-footer {
  padding: 0 12px 12px;
  display: flex;
  justify-content: flex-end;
}

.onb-dismiss-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.onb-dismiss-btn:hover {
  background: rgba(99, 102, 241, 0.14);
}

.dark .onb-dismiss-btn {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
}

.dark .onb-dismiss-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .onb-header {
    padding: 14px 16px 10px;
  }
  
  .onb-steps {
    padding: 6px 8px 10px;
  }
  
  .onb-step {
    padding: 8px 10px;
  }
  
  .onb-step-desc {
    display: none;
  }
  
  .onb-progress {
    margin: 0 16px 4px;
  }
}

/* Active Incidents - Modern Compact Design */

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Incident Card Items */
.incident-card-item {
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: center center;
}

.incident-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Dark mode card styling */
.dark .incident-card-item {
  background: linear-gradient(145deg, #1e293b 0%, #151d2e 100%) !important;
  border-color: rgba(148, 163, 184, 0.07) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              0 1px 2px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.dark .incident-card-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(99, 102, 241, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(99, 102, 241, 0.15) !important;
  transform: translateY(-2px);
}

/* Dark mode text colors */
.dark .incident-card-item .ant-typography {
  color: #e2e8f0 !important;
}

.dark .incident-card-item .ant-typography-secondary {
  color: #94a3b8 !important;
}

.dark .incident-card-item strong {
  color: #f1f5f9 !important;
}

/* Compact collapse */
.incident-card-item .ant-collapse-ghost > .ant-collapse-item {
  margin-bottom: 0 !important;
}

.incident-card-item .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-header {
  padding: 2px 0 !important;
  min-height: 0 !important;
  font-size: 11px;
  color: #bfbfbf;
  line-height: 1.2;
}

.dark .incident-card-item .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-header {
  color: #cbd5e1;
}

.incident-card-item .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
  padding: 8px 0 !important;
}

/* Button hover states */
.incident-card-item .ant-btn-sm:hover {
  transform: scale(1.1) translateY(-1px);
}

.incident-card-item .ant-btn-text:hover {
  background-color: rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
}

.dark .incident-card-item .ant-btn-text:hover {
  background-color: rgba(148, 163, 184, 0.15);
}

/* Action button enhancements */
.incident-card-item .ant-btn-icon-only {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.incident-card-item .ant-btn-icon-only .anticon {
  transition: transform 0.2s ease;
}

.incident-card-item .ant-btn-icon-only:hover .anticon {
  transform: scale(1.1);
}

.incident-card-item .ant-btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Tag refinements */
.incident-card-item .ant-tag {
  border: none;
  font-weight: 500;
}

/* Dark mode icon backgrounds */
.dark .incident-card-item .icon-badge-error {
  background-color: rgba(239, 68, 68, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3) inset !important;
}

.dark .incident-card-item .icon-badge-success {
  background-color: rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3) inset !important;
}

.dark .incident-card-item .icon-badge-warning {
  background-color: rgba(251, 191, 36, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3) inset !important;
}

/* Dark mode detail cards */
.dark .incident-card-item .detail-card-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dark .incident-card-item .detail-card-info .ant-typography {
  color: #bfdbfe !important;
}

.dark .incident-card-item .detail-card-warning {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dark .incident-card-item .detail-card-warning .ant-typography {
  color: #e9d5ff !important;
}

.dark .incident-card-item .detail-card-neutral {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.3) 0%, rgba(51, 65, 85, 0.25) 100%) !important;
  border: 1px solid rgba(100, 116, 139, 0.4) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dark .incident-card-item .detail-card-neutral .ant-typography {
  color: #cbd5e1 !important;
}

/* Empty State Card */
.empty-state-card {
  border: 2px dashed #d9d9d9;
  transition: all 0.3s ease;
}

.empty-state-card:hover {
  border-color: #722ed1;
  box-shadow: 0 4px 16px rgba(114, 46, 209, 0.15);
}

.dark .empty-state-card {
  border-color: #4b5563;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

.dark .empty-state-card:hover {
  border-color: #722ed1;
  box-shadow: 0 4px 16px rgba(114, 46, 209, 0.3);
}

/* Pagination Styling */
.ant-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ant-pagination-item,
.ant-pagination-prev,
.ant-pagination-next {
  border-radius: 6px;
  min-width: 32px;
  height: 32px;
}

.ant-pagination-item-active {
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
  border-color: #722ed1;
}

.ant-pagination-item-active a {
  color: #fff;
}

/* Dark mode pagination */
.dark .ant-pagination-item {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .ant-pagination-item a {
  color: #e2e8f0;
}

.dark .ant-pagination-item:hover {
  border-color: #64748b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dark .ant-pagination-item-active {
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%) !important;
  border-color: #722ed1 !important;
}

.dark .ant-pagination-item-active a {
  color: #ffffff !important;
}

.dark .ant-pagination-prev button,
.dark .ant-pagination-next button {
  color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .incident-card-item .ant-card-body {
    padding: 10px 12px !important;
  }
}

/* Dark Mode Support */
.dark .ant-input-affix-wrapper,
.dark .ant-input {
  background-color: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark .ant-input-affix-wrapper:hover,
.dark .ant-input:hover {
  border-color: #6b7280;
}

.dark .ant-input-affix-wrapper-focused,
.dark .ant-input-affix-wrapper:focus,
.dark .ant-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dark .ant-input::placeholder {
  color: #6b7280;
}

.dark .ant-input-prefix,
.dark .ant-input-suffix {
  color: #9ca3af;
}

.dark .ant-card {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .ant-card-body {
  color: #e5e7eb;
}

.dark .ant-statistic-title {
  color: #9ca3af;
}

.dark .ant-statistic-content {
  color: #f9fafb;
}

.dark .ant-btn-default {
  background-color: transparent;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark .ant-btn-default:hover {
  background-color: #374151;
  border-color: #6b7280;
  color: #f9fafb;
}

.dark .ant-empty-description {
  color: #9ca3af;
}

.dark .ant-list-item {
  border-color: #374151;
}

.dark .ant-list-item-meta-title,
.dark .ant-list-item-meta-description {
  color: #e5e7eb;
}

.dark .ant-modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark .ant-modal-header {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .ant-modal-title {
  color: #f9fafb;
}

.dark .ant-modal-close {
  color: #9ca3af;
}

.dark .ant-modal-close:hover {
  color: #f9fafb;
}

.dark .ant-select-selector {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
  color: #f9fafb !important;
}

.dark .ant-select-selection-item {
  color: #f9fafb;
}

.dark .ant-collapse {
  background-color: transparent;
  border-color: #374151;
}

.dark .ant-collapse-header {
  color: #9ca3af;
}

.dark .ant-collapse-content {
  background-color: transparent;
  border-color: #374151;
}

/* Dark Mode Modal Styles */
.dark-modal .ant-modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

.dark-modal .ant-modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark-modal .ant-modal-title {
  color: #e6e6e6 !important;
}

.dark-modal .ant-modal-title .ant-typography {
  color: #e6e6e6 !important;
}

.dark-modal .ant-modal-close {
  color: #8c8c8c !important;
}

.dark-modal .ant-modal-close:hover {
  color: #e6e6e6 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.dark-modal .ant-modal-body {
  background: transparent !important;
}

.dark-modal .ant-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-modal .ant-card-body {
  background: transparent !important;
}

.dark-modal .ant-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-modal .ant-divider-inner-text {
  color: #8c8c8c !important;
}

.dark-modal .ant-timeline-item-tail {
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-modal .ant-input,
.dark-modal .ant-input-affix-wrapper,
.dark-modal textarea.ant-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e6e6e6 !important;
}

.dark-modal .ant-input::placeholder,
.dark-modal textarea.ant-input::placeholder {
  color: #666 !important;
}

.dark-modal .ant-input:hover,
.dark-modal .ant-input-affix-wrapper:hover,
.dark-modal textarea.ant-input:hover {
  border-color: #6366f1 !important;
}

.dark-modal .ant-input:focus,
.dark-modal .ant-input-affix-wrapper:focus,
.dark-modal textarea.ant-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.dark-modal .ant-spin-text {
  color: #8c8c8c !important;
}

/* Custom scrollbar styling for dark mode */
.dark-modal ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dark-modal ::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.dark-modal ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.dark-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Light mode scrollbar */
.ant-modal ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.ant-modal ::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.ant-modal ::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}

.ant-modal ::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

/* =============================================
   Acknowledge Incident Modal — aim-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.aim-root .ant-modal-header,
.aim-root .ant-modal-footer,
.aim-root .ant-modal-close { display: none !important; }
.aim-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.aim-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.aim-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(79,70,229,.04) 100%);
  border-bottom: 1px solid rgba(99,102,241,.08);
}
.aim-header.dark {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(79,70,229,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.aim-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  flex-shrink: 0;
}

.aim-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.aim-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.aim-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.aim-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.aim-body { padding: 20px; }
.aim-body.dark { background: #141414; }

/* ── Monitor Info Card ── */
.aim-monitor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.aim-monitor-card.dark {
  background: #1a1a1a; border-color: #292929;
}

.aim-monitor-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aim-monitor-icon.down { background: rgba(239,68,68,.12); color: #ef4444; }
.aim-monitor-icon.slow { background: rgba(245,158,11,.12); color: #f59e0b; }
.aim-monitor-icon.up { background: rgba(34,197,94,.12); color: #22c55e; }

/* ── Info box ── */
.aim-info-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(99,102,241,.05); border: 1px solid rgba(99,102,241,.10);
  color: #6366f1;
}
.aim-info-box.dark {
  background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.15);
  color: #a5b4fc;
}

/* ── Section ── */
.aim-section {
  margin-bottom: 16px;
}

.aim-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #6b7280; margin-bottom: 10px;
}
.aim-section-label.dark { color: #9ca3af; }

/* ── Info Note ── */
.aim-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-top: 4px;
  background: #f9fafb; border: 1px solid #e5e7eb;
  font-size: 12px; line-height: 1.5; color: #6b7280;
}
.aim-note.dark {
  background: #1a1a1a; border-color: #292929; color: #9ca3af;
}

/* ── Textarea ── */
.aim-textarea.ant-input {
  border-radius: 10px !important;
  font-size: 13px; padding: 10px 12px;
  resize: none; border: 1px solid #e5e7eb;
}
.aim-textarea.ant-input:hover { border-color: #d1d5db; }
.aim-textarea.ant-input:focus {
  border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.1);
}
.aim-textarea.dark.ant-input {
  background: #1a1a1a !important; border-color: #292929 !important; color: #e5e7eb !important;
}
.aim-textarea.dark.ant-input:hover { border-color: #3a3a3a !important; }
.aim-textarea.dark.ant-input:focus {
  border-color: #6366f1 !important; box-shadow: 0 0 0 2px rgba(99,102,241,.15) !important;
}
.aim-textarea.dark.ant-input::placeholder { color: #6b7280 !important; }

/* ── Footer ── */
.aim-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.aim-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.aim-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.aim-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.aim-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.aim-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }
.aim-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }

.aim-btn-submit {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.aim-btn-submit:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
  transform: translateY(-1px);
}
.aim-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.aim-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: aimSpin .6s linear infinite;
}
@keyframes aimSpin { to { transform: rotate(360deg); } }


/* =============================================
   Snooze Incident Modal — sim-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.sim-root .ant-modal-header,
.sim-root .ant-modal-footer,
.sim-root .ant-modal-close { display: none !important; }
.sim-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.sim-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.sim-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, rgba(217,119,6,.04) 100%);
  border-bottom: 1px solid rgba(245,158,11,.08);
}
.sim-header.dark {
  background: linear-gradient(135deg, rgba(245,158,11,.10) 0%, rgba(217,119,6,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.sim-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
  flex-shrink: 0;
}
.sim-header-icon.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 12px rgba(251,191,36,.35);
}

.sim-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.sim-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.sim-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.sim-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.sim-body { padding: 20px; }
.sim-body.dark { background: #141414; }

/* ── Monitor Info Card ── */
.sim-monitor-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.sim-monitor-card.dark {
  background: #1a1a1a; border-color: #292929;
}

.sim-monitor-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sim-monitor-icon.down { background: rgba(239,68,68,.12); color: #ef4444; }
.sim-monitor-icon.slow { background: rgba(245,158,11,.12); color: #f59e0b; }
.sim-monitor-icon.up { background: rgba(34,197,94,.12); color: #22c55e; }

/* ── Section ── */
.sim-section {
  margin-bottom: 16px;
}
.sim-section:last-child { margin-bottom: 0; }

.sim-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #6b7280; margin-bottom: 10px;
}
.sim-section-label.dark { color: #9ca3af; }

/* ── Duration Grid ── */
.sim-duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.sim-duration-card {
  padding: 10px 8px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid #e5e7eb; background: #fff;
  text-align: center; transition: all .15s;
}
.sim-duration-card:hover { border-color: #d1d5db; background: #fafafa; }
.sim-duration-card.active {
  border-color: #f59e0b; background: rgba(245,158,11,.06);
}
.sim-duration-card.dark { background: #1a1a1a; border-color: #292929; }
.sim-duration-card.dark:hover { border-color: #3a3a3a; background: #1f1f1f; }
.sim-duration-card.dark.active {
  border-color: #f59e0b; background: rgba(245,158,11,.10);
}

.sim-duration-label {
  font-size: 12px; font-weight: 500; color: #6b7280;
  transition: all .15s;
}
.sim-duration-card.active .sim-duration-label {
  font-weight: 600; color: #f59e0b;
}
.sim-duration-card.dark .sim-duration-label { color: #9ca3af; }
.sim-duration-card.dark.active .sim-duration-label { color: #fbbf24; }

/* ── Textarea ── */
.sim-textarea.ant-input {
  border-radius: 10px !important;
  font-size: 13px; padding: 10px 12px;
  resize: none; border: 1px solid #e5e7eb;
}
.sim-textarea.ant-input:hover { border-color: #d1d5db; }
.sim-textarea.ant-input:focus {
  border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.1);
}
.sim-textarea.dark.ant-input {
  background: #1a1a1a !important; border-color: #292929 !important; color: #e5e7eb !important;
}
.sim-textarea.dark.ant-input:hover { border-color: #3a3a3a !important; }
.sim-textarea.dark.ant-input:focus {
  border-color: #f59e0b !important; box-shadow: 0 0 0 2px rgba(245,158,11,.15) !important;
}
.sim-textarea.dark.ant-input::placeholder { color: #6b7280 !important; }

/* ── Footer ── */
.sim-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.sim-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.sim-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.sim-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.sim-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.sim-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }
.sim-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }

.sim-btn-unsnooze {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
  display: flex; align-items: center; gap: 7px;
}
.sim-btn-unsnooze:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.sim-btn-unsnooze.dark { border-color: #333; color: #9ca3af; }
.sim-btn-unsnooze.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }
.sim-btn-unsnooze:disabled { opacity: .5; cursor: not-allowed; }

.sim-btn-submit {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.sim-btn-submit:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,.45);
  transform: translateY(-1px);
}
.sim-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.sim-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: simSpin .6s linear infinite;
}
@keyframes simSpin { to { transform: rotate(360deg); } }


/* =============================================
   Incident Timeline Modal — itl-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.itl-root .ant-modal-header,
.itl-root .ant-modal-footer,
.itl-root .ant-modal-close { display: none !important; }
.itl-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.itl-root .ant-modal-body { padding: 0 !important; }

/* ── Loading state ── */
.itl-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0;
}

/* ── Header ── */
.itl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(107,114,128,.06) 0%, rgba(75,85,99,.04) 100%);
  border-bottom: 1px solid rgba(107,114,128,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.itl-header.dark {
  background: linear-gradient(135deg, rgba(107,114,128,.10) 0%, rgba(75,85,99,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.itl-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.itl-header-icon.down {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
}
.itl-header-icon.slow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
.itl-header-icon.up {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
}

.itl-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.itl-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.itl-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.itl-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Status badges ── */
.itl-status-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
  letter-spacing: .3px;
}
.itl-status-badge.triggered {
  background: rgba(239,68,68,.10); color: #ef4444;
}
.itl-status-badge.acknowledged {
  background: rgba(99,102,241,.10); color: #6366f1;
}
.itl-status-badge.resolved {
  background: rgba(34,197,94,.10); color: #22c55e;
}
.itl-status-badge.snoozed {
  background: rgba(168,85,247,.10); color: #a855f7;
}

/* dark mode badges */
.themed-modal.dark-modal .itl-status-badge.triggered { background: rgba(239,68,68,.15); color: #f87171; }
.themed-modal.dark-modal .itl-status-badge.acknowledged { background: rgba(99,102,241,.15); color: #a5b4fc; }
.themed-modal.dark-modal .itl-status-badge.resolved { background: rgba(34,197,94,.15); color: #4ade80; }
.themed-modal.dark-modal .itl-status-badge.snoozed { background: rgba(168,85,247,.15); color: #c084fc; }

/* ── Body ── */
.itl-body {
  padding: 16px 20px;
  max-height: calc(80vh - 180px);
  overflow-y: auto;
}
.itl-body::-webkit-scrollbar { width: 4px; }
.itl-body::-webkit-scrollbar-track { background: transparent; }
.itl-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.itl-body.dark::-webkit-scrollbar-thumb { background: #333; }

/* ── Section ── */
.itl-section {
  background: #f9fafb; border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
}
.itl-section.dark { background: #161616; }
.itl-section:last-child { margin-bottom: 0; }

/* Public updates section - highlighted */
.itl-section.public-updates {
  background: linear-gradient(135deg, rgba(34,197,94,.04) 0%, rgba(16,185,129,.02) 100%);
  border: 1px solid rgba(34,197,94,.12);
}
.itl-section.public-updates.dark {
  background: linear-gradient(135deg, rgba(34,197,94,.08) 0%, rgba(16,185,129,.04) 100%);
  border-color: rgba(34,197,94,.15);
}

.itl-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 12px;
}
.itl-section-label.dark { color: #9ca3af; }

/* ── Timeline ── */
.itl-timeline-scroll {
  max-height: 240px; overflow-y: auto;
  position: relative;
}
.itl-timeline-scroll::-webkit-scrollbar { width: 3px; }
.itl-timeline-scroll::-webkit-scrollbar-track { background: transparent; }
.itl-timeline-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.itl-timeline-item {
  display: flex; gap: 10px;
  position: relative; padding-bottom: 14px;
}
.itl-timeline-item:last-child { padding-bottom: 0; }

.itl-timeline-line {
  position: absolute; left: 12px; top: 26px; bottom: 0;
  width: 2px; background: #e5e7eb;
}
.itl-timeline-line.dark { background: #292929; }
/* Line that connects to the comment input below */
.itl-timeline-line.to-input { bottom: -14px; }

.itl-timeline-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; z-index: 1;
}
.itl-timeline-dot.dark { background: #1a1a1a; }

.itl-timeline-content {
  flex: 1 1; min-width: 0;
  background: #fff; border-radius: 8px;
  padding: 10px 12px; border: 1px solid #e5e7eb;
}
.itl-timeline-content.dark {
  background: #1a1a1a; border-color: #292929;
}

.itl-timeline-header {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 4px;
}

.itl-timeline-title {
  font-size: 12px; font-weight: 600;
}

.itl-timeline-meta {
  font-size: 10px; color: #9ca3af;
}

.itl-timeline-message {
  font-size: 11px; color: #6b7280; line-height: 1.45;
  margin-top: 4px;
}
.themed-modal.dark-modal .itl-timeline-message { color: #9ca3af; }

/* ── Empty state ── */
.itl-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 0; color: #d1d5db; gap: 6px;
}
.itl-empty span { font-size: 12px; }
.itl-empty.small { padding: 16px 0; }
.itl-empty.small span { font-size: 11px; }
.itl-empty.dark { color: #4b5563; }

/* ── Updates ── */
.itl-updates-scroll {
  max-height: 160px; overflow-y: auto; margin-bottom: 12px;
}
.itl-updates-scroll::-webkit-scrollbar { width: 3px; }
.itl-updates-scroll::-webkit-scrollbar-track { background: transparent; }
.itl-updates-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.itl-update-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px;
  border-radius: 8px; background: #fff; border: 1px solid #e5e7eb;
}
.itl-update-item:last-child { margin-bottom: 0; }
.itl-update-item.dark { background: #1a1a1a; border-color: #292929; }

.itl-update-status {
  font-size: 9px; font-weight: 600; padding: 2px 7px;
  border-radius: 8px; text-transform: uppercase;
  flex-shrink: 0;
}
.itl-update-status.investigating { background: rgba(245,158,11,.10); color: #f59e0b; }
.itl-update-status.identified { background: rgba(59,130,246,.10); color: #3b82f6; }
.itl-update-status.monitoring { background: rgba(168,85,247,.10); color: #a855f7; }
.itl-update-status.resolved { background: rgba(34,197,94,.10); color: #22c55e; }

/* dark mode update statuses */
.themed-modal.dark-modal .itl-update-status.investigating { background: rgba(245,158,11,.15); color: #fbbf24; }
.themed-modal.dark-modal .itl-update-status.identified { background: rgba(59,130,246,.15); color: #60a5fa; }
.themed-modal.dark-modal .itl-update-status.monitoring { background: rgba(168,85,247,.15); color: #c084fc; }
.themed-modal.dark-modal .itl-update-status.resolved { background: rgba(34,197,94,.15); color: #4ade80; }

/* ── Update form ── */
.itl-update-form { margin-top: 12px; }

.itl-update-input-row {
  display: flex; gap: 8px; margin-top: 8px;
}

/* ── Input ── */
.itl-input.ant-input {
  height: 36px; border-radius: 9px !important;
  font-size: 12px; padding: 0 12px;
}
.itl-input.dark.ant-input {
  background: #1a1a1a !important; border-color: #292929 !important; color: #e5e7eb !important;
}
.itl-input.dark.ant-input:hover { border-color: #3a3a3a !important; }
.itl-input.dark.ant-input:focus {
  border-color: #6366f1 !important; box-shadow: 0 0 0 2px rgba(99,102,241,.15) !important;
}
.itl-input.dark.ant-input::placeholder { color: #4b5563 !important; }

/* ── Select ── */
.itl-select .ant-select-selector {
  border-radius: 8px !important; font-size: 11px !important;
}

/* ── Send button ── */
.itl-btn-send {
  width: 36px; height: 36px; border-radius: 9px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.itl-btn-send:hover {
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  transform: translateY(-1px);
}
.itl-btn-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Timeline Footer (Internal Timeline + Comment) ── */
.itl-timeline-footer {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}
.itl-timeline-footer.dark {
  background: #111111;
  border-top-color: #1f1f1f;
}

/* Comment input area - connected to timeline */
.itl-comment-input-area {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px; padding-top: 0;
  position: relative;
}

.itl-comment-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid #6366f1;
  display: flex; align-items: center; justify-content: center;
  color: #6366f1; flex-shrink: 0; z-index: 1;
}
.itl-comment-dot.dark {
  background: #1a1a1a; border-color: #818cf8; color: #818cf8;
}

.itl-comment-row {
  display: flex; gap: 8px; flex: 1 1;
}

.itl-btn-comment {
  width: 36px; height: 36px; border-radius: 9px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.itl-btn-comment:hover {
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  transform: translateY(-1px);
}
.itl-btn-comment:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.itl-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: itlSpin .6s linear infinite;
}
@keyframes itlSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 500px) {
  .aim-header, .sim-header, .itl-header { padding: 14px 16px; }
  .aim-body, .sim-body, .itl-body { padding: 16px; }
  .aim-footer, .sim-footer, .itl-timeline-footer { padding: 12px 16px; }
  .sim-duration-grid { grid-template-columns: repeat(2, 1fr); }
  .itl-timeline-scroll { max-height: 180px; }
  .itl-updates-scroll { max-height: 120px; }
}

/* ============================================
   Notification Rule Modal — Media Luna
   Mirrors AddMonitorModal / NCM design system.
   Prefix: nrm-
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.nrm-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.nrm-root .ant-modal-header  { display: none !important; }
.nrm-root .ant-modal-body    { padding: 0 !important; }
.nrm-root .ant-modal-close   { display: none !important; }

/* ── Header ── */
.nrm-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.nrm-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nrm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.nrm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.nrm-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.nrm-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Scrollable body ── */
.nrm-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 130px);
  overflow-y: auto; overflow-x: hidden;
}
.nrm-body::-webkit-scrollbar       { width: 4px; }
.nrm-body::-webkit-scrollbar-track  { background: transparent; }
.nrm-body::-webkit-scrollbar-thumb  { background: rgba(0,0,0,0.08); border-radius: 2px; }
.nrm-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.nrm-body.dark::-webkit-scrollbar-thumb       { background: rgba(255,255,255,0.06); }
.nrm-body.dark::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.1); }

/* ── Section label ── */
.nrm-label {
  display: block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; margin-bottom: 6px;
}
.nrm-label.dark { color: #9ca3af; }

/* ── Config box ── */
.nrm-config-box {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06); background: #fafbfc;
}
.nrm-config-box.dark { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06); }

/* ── Option cards (radio-style) ── */
.nrm-option-card {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; border-radius: 10px; text-align: left;
  border: 1.5px solid transparent; background: #f8f9fb;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none; outline: none;
}
.nrm-option-card:hover { background: #f0f1f5; border-color: rgba(99,102,241,0.12); }
.nrm-option-card.active { border-color: #6366f1; background: rgba(99,102,241,0.05); box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }

.nrm-option-card.dark { background: rgba(255,255,255,0.03); }
.nrm-option-card.dark:hover { background: rgba(255,255,255,0.05); border-color: rgba(99,102,241,0.15); }
.nrm-option-card.dark.active { background: rgba(99,102,241,0.08); border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.12); }

.nrm-option-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #d1d5db; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.nrm-option-radio.active { border-color: #6366f1; }
.nrm-option-card.dark .nrm-option-radio { border-color: rgba(255,255,255,0.15); }
.nrm-option-card.dark .nrm-option-radio.active { border-color: #818cf8; }

.nrm-radio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent; transition: all 0.15s;
}
.nrm-option-radio.active .nrm-radio-dot { background: #6366f1; }
.nrm-option-card.dark .nrm-option-radio.active .nrm-radio-dot { background: #818cf8; }

/* ── Custom tags (tag selector pills) ── */
.nrm-custom-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px; color: #fff;
  font-size: 11px; font-weight: 500; line-height: 20px;
}
.nrm-custom-tag-close { cursor: pointer; margin-left: 2px; font-size: 14px; opacity: 0.8; }
.nrm-custom-tag-close:hover { opacity: 1; }

.nrm-tag-option { display: flex; align-items: center; gap: 8px; }
.nrm-tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Condition dropdown options ── */
.nrm-condition-option { display: flex; align-items: center; gap: 8px; }
.nrm-condition-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nrm-condition-dot.down { background: #ef4444; }
.nrm-condition-dot.up   { background: #10b981; }
.nrm-condition-dot.slow { background: #f59e0b; }

.nrm-condition-dropdown.dark .ant-select-item { color: #d1d5db; }
.nrm-condition-dropdown.dark .ant-select-item-option-active { background: rgba(99,102,241,0.1) !important; }
.nrm-condition-dropdown.dark .ant-select-item-option-selected { background: rgba(99,102,241,0.15) !important; color: #a5b4fc; }

/* ── Remove condition button ── */
.nrm-remove-btn {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: transparent; color: #d1d5db; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; margin-top: 4px;
}
.nrm-remove-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.nrm-remove-btn.dark { color: #4b5563; }
.nrm-remove-btn.dark:hover { color: #f87171; background: rgba(239,68,68,0.12); }

/* ── Add condition button ── */
.nrm-add-condition-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px; border-radius: 9px;
  border: 1.5px dashed rgba(0,0,0,0.1); background: transparent;
  font-size: 12px; font-weight: 550; color: #9ca3af;
  cursor: pointer; transition: all 0.15s; margin-top: 6px;
}
.nrm-add-condition-btn:hover { border-color: rgba(99,102,241,0.3); color: #6366f1; background: rgba(99,102,241,0.03); }
.nrm-add-condition-btn.dark { border-color: rgba(255,255,255,0.08); color: #6b7280; }
.nrm-add-condition-btn.dark:hover { border-color: rgba(99,102,241,0.3); color: #a5b4fc; background: rgba(99,102,241,0.06); }

/* ── Footer ── */
.nrm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.nrm-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}

.nrm-btn-cancel {
  padding: 7px 18px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.nrm-btn-cancel:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.nrm-btn-cancel.dark   { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.nrm-btn-cancel.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }

.nrm-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.nrm-btn-submit:hover   { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.nrm-btn-submit:active  { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.nrm-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Plan badge (Business/Enterprise) ── */
.nrm-plan-badge {
  display: inline-flex; align-items: center; padding: 0 5px;
  border-radius: 4px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff; font-size: 9px; font-weight: 700; height: 16px;
  line-height: 16px; margin-left: 6px; letter-spacing: 0.3px;
  vertical-align: middle;
}

/* ── Locked feature box ── */
.nrm-locked-box {
  padding: 10px 14px; border-radius: 9px;
  border: 1px dashed rgba(0,0,0,0.1); background: rgba(0,0,0,0.015);
  opacity: 0.7;
}
.nrm-locked-box.dark {
  border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
}

/* ── Ant overrides inside nrm-root ── */
.nrm-root .ant-input,
.nrm-root .ant-input-affix-wrapper,
.nrm-root .ant-input-password,
.nrm-root .ant-select-selector { border-radius: 10px !important; }

.nrm-root .ant-input-affix-wrapper .ant-input {
  background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
}
.nrm-root .ant-select { background: transparent !important; background-color: transparent !important; }
.nrm-root .ant-select-selection-search-input { background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
.nrm-root .ant-select-selection-overflow { background: transparent !important; }
.nrm-root .ant-select-selection-search { background: transparent !important; }
.nrm-root .ant-form-item { margin-bottom: 12px; }
.nrm-root .ant-form-item-label { padding-bottom: 2px !important; }
.nrm-root .ant-form-item-label > label { font-size: 12px !important; font-weight: 500 !important; }

/* Multi-select chips */
.nrm-root .ant-select-multiple .ant-select-selection-item {
  border-radius: 6px; background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.15); color: #4f46e5;
  font-size: 12px; font-weight: 500; padding: 1px 8px;
  height: 26px; line-height: 24px;
}
.nrm-root .ant-select-multiple .ant-select-selection-item-remove { color: #818cf8; font-size: 10px; }
.nrm-root .ant-select-multiple .ant-select-selection-item-remove:hover { color: #ef4444; }

/* InputNumber addons */
.nrm-root .ant-input-number-group-addon { border-radius: 0; font-size: 12px; color: #6b7280; }

/* ── Dark Ant overrides ── */
.themed-modal.dark-modal .nrm-root .ant-form-item-label > label { color: #d1d5db !important; }
.themed-modal.dark-modal .nrm-root .ant-form-item-extra { color: #6b7280 !important; }
.themed-modal.dark-modal .nrm-root .ant-select-multiple .ant-select-selection-item { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.2); color: #a5b4fc; }
.themed-modal.dark-modal .nrm-root .ant-select-multiple .ant-select-selection-item-remove { color: #818cf8; }
.themed-modal.dark-modal .nrm-root .ant-select-multiple .ant-select-selection-item-remove:hover { color: #f87171; }
.themed-modal.dark-modal .nrm-root .ant-input-number-group-addon { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.1) !important; color: #9ca3af !important; }
.themed-modal.dark-modal .nrm-root .ant-switch:not(.ant-switch-checked) { background: rgba(255,255,255,0.15) !important; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .nrm-header { padding: 14px 16px 12px; }
  .nrm-body   { padding: 14px 16px 8px; }
  .nrm-footer { padding: 12px 16px; }
}

/* Notification Rules Page Animations */

/* Rule card animation */
.ant-list-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ant-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Switch animation */
.ant-switch {
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.ant-switch:hover {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Action buttons animation */
.ant-space-item .ant-btn {
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.ant-space-item .ant-btn:hover {
  transform: translateY(-2px);
}

.ant-space-item .ant-btn:active {
  transform: translateY(0);
}

/* Status badge animation */
@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.ant-badge-status-processing .ant-badge-status-dot {
  animation: statusPulse 1.5s ease-in-out infinite;
}


/* ========================================================
   Alert Flow Pipeline — Notification Rule Card (v2)
   Compact inline strip: [When ···] → [For ···] → [Then ···]
   ======================================================== */

/* --- Card-level tweaks --- */

.nrc-card .ant-card-body {
  padding: 14px 16px 14px 22px !important;
}

/* --- Pipeline container --- */

.nr-flow-pipeline {
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.5);
  overflow: hidden;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}

/* --- Track --- */

.nr-flow-track {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

@media (max-width: 639px) {
  .nr-flow-track {
    flex-direction: column;
  }
}

/* --- Flow Step --- */

.nr-flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  position: relative;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nr-flow-step:hover {
  background: rgba(99, 102, 241, 0.03);
}

/* Thin left accent per step (except first — uses card accent) */
.nr-flow-step + .nr-flow-chevron + .nr-flow-step {
  border-left: 1px solid rgba(226, 232, 240, 0.6);
}

/* --- Step tag label (When / For / Then) --- */

.nr-flow-step__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.nr-flow-step--trigger .nr-flow-step__tag {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
}

.nr-flow-step--scope .nr-flow-step__tag {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

.nr-flow-step--notify .nr-flow-step__tag {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

/* --- Step content (tokens live here) --- */

.nr-flow-step__content {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

/* --- Tokens (compact inline pills) --- */

.nr-flow-token {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #475569;
  white-space: nowrap;
  cursor: default;
}

.nr-flow-token--condition {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 5px;
  padding: 2px 6px;
}

.nr-flow-token--scope {
  cursor: help;
  gap: 5px;
}

.nr-flow-token--notify {
  cursor: help;
}

.nr-flow-token--empty {
  color: #94a3b8;
  font-style: italic;
  font-size: 10px;
}

.nr-flow-token--meta {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.02em;
}

.nr-flow-token--escalation {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 4px;
  padding: 2px 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nr-flow-token--escalation .anticon {
  font-size: 9px;
  animation: escalationPulse 2s ease-in-out infinite;
}

@keyframes escalationPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Token icons --- */

.nr-flow-token__icon {
  font-size: 10px;
  flex-shrink: 0;
}

.nr-flow-token__icon--red    { color: #ef4444; }
.nr-flow-token__icon--green  { color: #22c55e; }
.nr-flow-token__icon--amber  { color: #f59e0b; }
.nr-flow-token__icon--purple { color: #8b5cf6; }

/* --- Count badges (monitors / tags) --- */

.nr-flow-token__count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.nr-flow-token__count--purple {
  background: rgba(139, 92, 246, 0.07);
  color: #7c3aed;
}

.nr-flow-token__count--indigo {
  background: rgba(99, 102, 241, 0.07);
  color: #6366f1;
}

/* --- Chevron connectors --- */

.nr-flow-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 8px;
  color: #cbd5e1;
  width: 16px;
}

@media (max-width: 639px) {
  .nr-flow-chevron {
    width: 100%;
    height: 12px;
    transform: rotate(90deg);
  }
  .nr-flow-step + .nr-flow-chevron + .nr-flow-step {
    border-left: none;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
  }
}


/* ========================================================
   Dark mode overrides — Pipeline v2
   ======================================================== */

.dark .nr-flow-pipeline,
[data-theme='dark'] .nr-flow-pipeline {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(51, 65, 85, 0.4);
}

.dark .nr-flow-step:hover,
[data-theme='dark'] .nr-flow-step:hover {
  background: rgba(99, 102, 241, 0.04);
}

.dark .nr-flow-step + .nr-flow-chevron + .nr-flow-step,
[data-theme='dark'] .nr-flow-step + .nr-flow-chevron + .nr-flow-step {
  border-left-color: rgba(51, 65, 85, 0.5);
}

/* Tags */
.dark .nr-flow-step--trigger .nr-flow-step__tag,
[data-theme='dark'] .nr-flow-step--trigger .nr-flow-step__tag {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.dark .nr-flow-step--scope .nr-flow-step__tag,
[data-theme='dark'] .nr-flow-step--scope .nr-flow-step__tag {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.dark .nr-flow-step--notify .nr-flow-step__tag,
[data-theme='dark'] .nr-flow-step--notify .nr-flow-step__tag {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

/* Tokens */
.dark .nr-flow-token,
[data-theme='dark'] .nr-flow-token {
  color: #cbd5e1;
}

.dark .nr-flow-token--condition,
[data-theme='dark'] .nr-flow-token--condition {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(51, 65, 85, 0.6);
}

.dark .nr-flow-token--empty,
[data-theme='dark'] .nr-flow-token--empty {
  color: #64748b;
}

.dark .nr-flow-token--meta,
[data-theme='dark'] .nr-flow-token--meta {
  color: #64748b;
  background: rgba(30, 41, 59, 0.5);
}

.dark .nr-flow-token--escalation,
[data-theme='dark'] .nr-flow-token--escalation {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.12);
}

/* Count badges */
.dark .nr-flow-token__count--purple,
[data-theme='dark'] .nr-flow-token__count--purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.dark .nr-flow-token__count--indigo,
[data-theme='dark'] .nr-flow-token__count--indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

/* Chevron */
.dark .nr-flow-chevron,
[data-theme='dark'] .nr-flow-chevron {
  color: #334155;
}

@media (max-width: 639px) {
  .dark .nr-flow-step + .nr-flow-chevron + .nr-flow-step,
  [data-theme='dark'] .nr-flow-step + .nr-flow-chevron + .nr-flow-step {
    border-left: none;
    border-top-color: rgba(51, 65, 85, 0.5);
  }
}

/* =============================================
   Revoke API Key Modal — rak-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.rak-root .ant-modal-header,
.rak-root .ant-modal-footer,
.rak-root .ant-modal-close { display: none !important; }
.rak-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.rak-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239,68,68,.06) 0%, rgba(220,38,38,.04) 100%);
  border-bottom: 1px solid rgba(239,68,68,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.rak-header.dark {
  background: linear-gradient(135deg, rgba(239,68,68,.10) 0%, rgba(220,38,38,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.rak-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
  flex-shrink: 0;
}

.rak-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.rak-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.rak-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.rak-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.rak-body { padding: 20px; }

/* ── Warning box ── */
.rak-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.12);
  color: #ef4444;
}
.rak-warning-box.dark {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.18);
  color: #f87171;
}

/* ── Key card ── */
.rak-key-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; margin-top: 14px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.rak-key-card.dark {
  background: #161616; border-color: #292929;
}

.rak-key-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #f59e0b; flex-shrink: 0;
  background: rgba(245,158,11,.10);
}
.rak-key-icon.dark {
  background: rgba(245,158,11,.15); color: #fbbf24;
}

/* ── Footer ── */
.rak-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.rak-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.rak-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.rak-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.rak-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.rak-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }
.rak-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }

.rak-btn-revoke {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.rak-btn-revoke:hover {
  box-shadow: 0 4px 16px rgba(239,68,68,.45);
  transform: translateY(-1px);
}
.rak-btn-revoke:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.rak-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: rakSpin .6s linear infinite;
}
@keyframes rakSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .rak-header { padding: 14px 16px; }
  .rak-body   { padding: 16px; }
  .rak-footer { padding: 12px 16px; }
}

/* =============================================
   Invite Team Member Modal — itm-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.itm-root .ant-modal-header,
.itm-root .ant-modal-footer,
.itm-root .ant-modal-close { display: none !important; }
.itm-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.itm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.04) 100%);
  border-bottom: 1px solid rgba(99,102,241,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.itm-header.dark {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(139,92,246,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.itm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  flex-shrink: 0;
}

.itm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.itm-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.itm-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.itm-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.itm-body {
  padding: 20px 20px 8px;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}
.itm-body::-webkit-scrollbar { width: 4px; }
.itm-body::-webkit-scrollbar-track { background: transparent; }
.itm-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.itm-body.dark::-webkit-scrollbar-thumb { background: #333; }

/* ── Label ── */
.itm-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #6b7280; margin-bottom: 6px; letter-spacing: .01em;
}
.itm-label.dark { color: #9ca3af; }

/* ── Role cards ── */
.itm-role-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #e5e7eb; background: #fafafa;
  transition: all .15s; margin-bottom: 8px;
}
.itm-role-card:last-child { margin-bottom: 0; }
.itm-role-card:hover { border-color: #d1d5db; }
.itm-role-card.active {
  border-color: #6366f1; background: rgba(99,102,241,.04);
}
.itm-role-card.dark { background: #161616; border-color: #292929; }
.itm-role-card.dark:hover { border-color: #3a3a3a; }
.itm-role-card.dark.active {
  border-color: #6366f1; background: rgba(99,102,241,.08);
}

.itm-role-radio {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #d1d5db; display: flex; align-items: center;
  justify-content: center; transition: all .15s;
}
.itm-role-card.active .itm-role-radio {
  border-color: #6366f1;
}
.itm-role-radio-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6366f1; transform: scale(0);
  transition: transform .15s;
}
.itm-role-card.active .itm-role-radio-dot {
  transform: scale(1);
}
.itm-role-card.dark .itm-role-radio { border-color: #444; }
.itm-role-card.dark.active .itm-role-radio { border-color: #6366f1; }

.itm-role-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
.itm-role-icon.purple { background: rgba(99,102,241,.10); color: #6366f1; }
.itm-role-icon.blue   { background: rgba(59,130,246,.10); color: #3b82f6; }
.itm-role-icon.gray   { background: rgba(107,114,128,.10); color: #6b7280; }

/* dark role icons */
.themed-modal.dark-modal .itm-role-icon.purple { background: rgba(99,102,241,.15); color: #a5b4fc; }
.themed-modal.dark-modal .itm-role-icon.blue   { background: rgba(59,130,246,.15); color: #93c5fd; }
.themed-modal.dark-modal .itm-role-icon.gray   { background: rgba(107,114,128,.15); color: #9ca3af; }

/* ── Info hint ── */
.itm-info-hint {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px; margin-top: 14px;
  background: rgba(99,102,241,.05); border: 1px solid rgba(99,102,241,.10);
  font-size: 11.5px; color: #6b7280; line-height: 1.5;
}
.itm-info-hint svg { flex-shrink: 0; margin-top: 1px; color: #6366f1; }
.itm-info-hint.dark {
  background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.15);
  color: #9ca3af;
}

/* ── Footer ── */
.itm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.itm-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.itm-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.itm-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.itm-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.itm-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.itm-btn-submit {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.itm-btn-submit:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
  transform: translateY(-1px);
}
.itm-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.itm-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: itmSpin .6s linear infinite;
}
@keyframes itmSpin { to { transform: rotate(360deg); } }

/* ── Input styling ── */
.itm-input.ant-input,
.itm-root .ant-input {
  height: 40px; border-radius: 10px !important;
  font-size: 13px; padding: 0 12px;
}
.itm-input.ant-input .ant-input-prefix,
.itm-root .ant-input .ant-input-prefix {
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
}
.itm-root .ant-input-affix-wrapper {
  height: 40px; border-radius: 10px !important;
  padding: 0 12px; font-size: 13px;
}
.itm-root .ant-select-selector {
  border-radius: 10px !important;
}
.itm-root .ant-form-item-label > label {
  font-size: 12px !important; font-weight: 600; color: #6b7280;
}
.itm-root .ant-form-item { margin-bottom: 14px; }

/* ── Dark Ant overrides ── */
.themed-modal.dark-modal .itm-root .ant-input,
.themed-modal.dark-modal .itm-root .ant-input-affix-wrapper {
  background: #1a1a1a; border-color: #292929; color: #e5e7eb;
}
.themed-modal.dark-modal .itm-root .ant-input:hover,
.themed-modal.dark-modal .itm-root .ant-input-affix-wrapper:hover { border-color: #3a3a3a; }
.themed-modal.dark-modal .itm-root .ant-input:focus,
.themed-modal.dark-modal .itm-root .ant-input-affix-wrapper-focused {
  border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.themed-modal.dark-modal .itm-root .ant-input::placeholder { color: #4b5563; }
.themed-modal.dark-modal .itm-root .ant-input-affix-wrapper .ant-input {
  background: transparent; border: none; box-shadow: none;
}

.themed-modal.dark-modal .itm-root .ant-form-item-label > label { color: #9ca3af; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .itm-header { padding: 14px 16px; }
  .itm-body   { padding: 16px 16px 6px; }
  .itm-footer { padding: 12px 16px; }
  .rtm-header { padding: 14px 16px; }
  .rtm-body   { padding: 16px 16px 6px; }
  .rtm-footer { padding: 12px 16px; }
}


/* =============================================
   Remove Team Member Modal — rtm-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.rtm-root .ant-modal-header,
.rtm-root .ant-modal-footer,
.rtm-root .ant-modal-close { display: none !important; }
.rtm-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.rtm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239,68,68,.06) 0%, rgba(220,38,38,.04) 100%);
  border-bottom: 1px solid rgba(239,68,68,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.rtm-header.dark {
  background: linear-gradient(135deg, rgba(239,68,68,.10) 0%, rgba(220,38,38,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.rtm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
  flex-shrink: 0;
}

.rtm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.rtm-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.rtm-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.rtm-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.rtm-body { padding: 20px; }
/* ── Warning box ── */
.rtm-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.12);
  color: #ef4444;
}
.rtm-warning-box.dark {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.18);
  color: #f87171;
}

/* ── Member card ── */
.rtm-member-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; margin-top: 14px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.rtm-member-card.dark {
  background: #161616; border-color: #292929;
}

.rtm-member-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #6366f1; flex-shrink: 0;
  background: rgba(99,102,241,.10);
}
.rtm-member-avatar.dark {
  background: rgba(99,102,241,.15); color: #a5b4fc;
}

/* ── Footer ── */
.rtm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.rtm-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.rtm-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.rtm-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.rtm-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.rtm-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }
.rtm-btn-cancel:disabled { opacity: .5; cursor: not-allowed; }

.rtm-btn-delete {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.rtm-btn-delete:hover {
  box-shadow: 0 4px 16px rgba(239,68,68,.45);
  transform: translateY(-1px);
}
.rtm-btn-delete:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.rtm-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: rtmSpin .6s linear infinite;
}
@keyframes rtmSpin { to { transform: rotate(360deg); } }


/* =============================================
   Create API Key Modal — cak-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.cak-root .ant-modal-header,
.cak-root .ant-modal-footer,
.cak-root .ant-modal-close { display: none !important; }
.cak-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.cak-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(34,197,94,.06) 0%, rgba(22,163,74,.04) 100%);
  border-bottom: 1px solid rgba(34,197,94,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.cak-header.dark {
  background: linear-gradient(135deg, rgba(34,197,94,.10) 0%, rgba(22,163,74,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.cak-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
  flex-shrink: 0;
}

.cak-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.cak-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.cak-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.cak-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.cak-body { padding: 20px; }

/* ── Warning hint ── */
.cak-warning-hint {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.12);
  font-size: 11.5px; color: #b45309; line-height: 1.5;
}
.cak-warning-hint svg { color: #f59e0b; }
.cak-warning-hint.dark {
  background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.18);
  color: #fbbf24;
}

/* ── Key box ── */
.cak-key-box {
  padding: 14px; border-radius: 10px; margin-bottom: 12px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.cak-key-box.dark { background: #161616; border-color: #292929; }

.cak-key-code {
  font-size: 12px; line-height: 1.6; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #374151; display: block;
}
.cak-key-code.dark { color: #d1d5db; }

/* ── Copy button ── */
.cak-btn-copy {
  width: 100%; height: 40px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s;
}
.cak-btn-copy:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
  transform: translateY(-1px);
}

/* ── Footer ── */
.cak-footer {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.cak-footer.dark { background: rgba(24,24,27,.85); border-top-color: #1f1f1f; }

.cak-btn-done {
  height: 36px; padding: 0 24px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.cak-btn-done:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.cak-btn-done.dark { border-color: #333; color: #9ca3af; }
.cak-btn-done.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }


/* =============================================
   Delete Account Modal — dam-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.dam-root .ant-modal-header,
.dam-root .ant-modal-footer,
.dam-root .ant-modal-close { display: none !important; }
.dam-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.dam-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239,68,68,.08) 0%, rgba(220,38,38,.05) 100%);
  border-bottom: 1px solid rgba(239,68,68,.12);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.dam-header.dark {
  background: linear-gradient(135deg, rgba(239,68,68,.12) 0%, rgba(220,38,38,.08) 100%);
  border-bottom-color: #1f1f1f;
}

.dam-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
  flex-shrink: 0;
}

.dam-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.dam-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.dam-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.dam-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.dam-body { padding: 20px; }

/* ── Danger box ── */
.dam-danger-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(239,68,68,.06); border: 1.5px solid rgba(239,68,68,.15);
  color: #ef4444;
}
.dam-danger-box.dark {
  background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.20);
  color: #f87171;
}

/* ── List box ── */
.dam-list-box {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
  background: #f9fafb; border: 1px solid #e5e7eb;
}
.dam-list-box.dark { background: #161616; border-color: #292929; }

/* ── Confirm box ── */
.dam-confirm-box {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.15);
}
.dam-confirm-box.dark {
  background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.18);
}

.dam-code {
  padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace;
  background: rgba(239,68,68,.10); color: #dc2626; font-weight: 700; font-size: 11px;
  border: 1px solid rgba(239,68,68,.20);
}
.dam-code.dark { background: rgba(239,68,68,.15); color: #fca5a5; border-color: rgba(239,68,68,.25); }

.dam-input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; font-family: ui-monospace, monospace;
  background: #fff; border: 1.5px solid #e5e7eb; color: #374151;
  outline: none; transition: all .15s;
}
.dam-input:focus { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.15); }
.dam-input.dark { background: #1a1a1a; border-color: #333; color: #e5e7eb; }
.dam-input.dark:focus { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.20); }
.dam-input::placeholder { color: #9ca3af; }
.dam-input.dark::placeholder { color: #4b5563; }

/* ── Footer ── */
.dam-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.dam-footer.dark { background: rgba(24,24,27,.85); border-top-color: #1f1f1f; }

.dam-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.dam-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.dam-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.dam-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.dam-btn-delete {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,.35);
  transition: all .15s;
}
.dam-btn-delete:hover {
  box-shadow: 0 4px 16px rgba(239,68,68,.45);
  transform: translateY(-1px);
}
.dam-btn-delete.disabled {
  opacity: .4; cursor: not-allowed; transform: none;
  box-shadow: none; background: #9ca3af;
}

/* ========================================
   Account Settings Tabs — Shared Styles
   ======================================== */

/* ---- Overview Tab ---- */

.overview-tab {
  padding: 28px;
  max-width: 1100px;
  margin: 0 auto;
  background: #fafbfc;
}

/* Plan Header */
.ov-plan-header {
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  padding: 2px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.ov-plan-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.95) 0%, rgba(124,58,237,0.95) 100%);
  position: relative;
  overflow: hidden;
}

.ov-plan-header-content::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

.ov-plan-left {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.ov-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.ov-plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ov-plan-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.ov-plan-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-plan-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  margin: 0;
  line-height: 1.2;
}

.ov-plan-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
  background: rgba(74,222,128,0.14);
  padding: 2px 10px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.ov-upgrade-btn {
  z-index: 1;
  height: 38px;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  white-space: nowrap;
}

.ov-upgrade-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Two-column body */
.ov-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  align-items: start;
}

/* Panels */
.ov-panel {
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fe 100%);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.ov-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: -0.01em;
}

.ov-panel-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ─── Usage Grid ─── */
.ov-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1px;
  gap: 1px;
  background: #f3f4f6;
}

.ov-usage-item {
  padding: 18px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
}

.ov-usage-item:hover {
  background: #fafbfc;
}

.ov-usage-item.warning {
  background: #fffbeb;
}

.ov-usage-item.critical {
  background: #fef2f2;
}

.ov-usage-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-usage-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ov-usage-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.ov-usage-numbers {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ov-usage-current {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ov-usage-sep {
  font-size: 14px;
  font-weight: 500;
  color: #d1d5db;
  margin: 0 1px;
}

.ov-usage-max {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
}

.ov-usage-warn {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* ─── Features List ─── */
.ov-features-list {
  display: flex;
  flex-direction: column;
}

.ov-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}

.ov-feature-row:last-child {
  border-bottom: none;
}

.ov-feature-row:hover {
  background: #fafbfc;
}

.ov-feature-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-feature-icon {
  font-size: 15px;
  color: #9ca3af;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-feature-label {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.ov-feature-value {
  font-size: 14px;
  font-weight: 650;
  color: #111827;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ─── Dark Mode — Overview ─── */

.dark.overview-tab { background: #111827; }

.dark.overview-tab .ov-panel {
  background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dark.overview-tab .ov-panel-header {
  color: #f3f4f6;
  border-bottom-color: #374151;
}

.dark.overview-tab .ov-usage-grid {
  background: #374151;
}

.dark.overview-tab .ov-usage-item {
  background: #1f2937;
}

.dark.overview-tab .ov-usage-item:hover {
  background: #253042;
}

.dark.overview-tab .ov-usage-item.warning {
  background: rgba(245,158,11,0.08);
}

.dark.overview-tab .ov-usage-item.critical {
  background: rgba(239,68,68,0.08);
}

.dark.overview-tab .ov-usage-label {
  color: #9ca3af;
}

.dark.overview-tab .ov-usage-current {
  color: #f3f4f6;
}

.dark.overview-tab .ov-usage-sep {
  color: #4b5563;
}

.dark.overview-tab .ov-usage-max {
  color: #6b7280;
}

.dark.overview-tab .ov-feature-row {
  border-bottom-color: #2d3748;
}

.dark.overview-tab .ov-feature-row:hover {
  background: #253042;
}

.dark.overview-tab .ov-feature-icon {
  color: #6b7280;
}

.dark.overview-tab .ov-feature-label {
  color: #d1d5db;
}

.dark.overview-tab .ov-feature-value {
  color: #f3f4f6;
}

/* ─── Overview Responsive ─── */
@media (max-width: 768px) {
  .overview-tab {
    padding: 16px;
  }

  .ov-plan-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
  }

  .ov-upgrade-btn {
    width: 100%;
    justify-content: center;
  }

  .ov-body {
    grid-template-columns: 1fr;
  }

  .ov-usage-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Profile Tab ---- */

.profile-tab {
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  background: #fafbfc;
}

/* Identity card */
.pf-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.pf-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.pf-identity-info {
  flex: 1 1;
  min-width: 0;
}

.pf-identity-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1px 0;
  line-height: 1.3;
}

.pf-identity-email {
  font-size: 13px;
  color: #6b7280;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-role-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.pf-role-badge.role-admin {
  background: #eef2ff;
  color: #4f46e5;
}

.pf-role-badge.role-editor {
  background: #ecfdf5;
  color: #059669;
}

.pf-role-badge.role-viewer {
  background: #f5f3ff;
  color: #7c3aed;
}

/* Sections */
.pf-section {
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fe 100%);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.pf-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pf-section-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pf-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.pf-section-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.pf-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 20px;
  gap: 0 20px;
}

.pf-section .ant-form-item-label > label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.pf-section .ant-input-lg,
.pf-section .ant-select-lg .ant-select-selector {
  border-radius: 10px !important;
  height: 44px !important;
  font-size: 14px;
}

/* Save row */
.pf-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.pf-save-btn {
  height: 44px !important;
  padding: 0 32px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.2s ease !important;
}

.pf-save-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

/* ─── Dark Mode — Profile ─── */

.dark.profile-tab .pf-identity {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dark.profile-tab {
  background: #111827;
}

.dark.profile-tab .pf-identity-name {
  color: #f3f4f6;
}

.dark.profile-tab .pf-identity-email {
  color: #9ca3af;
}

.dark.profile-tab .pf-role-badge.role-admin {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.dark.profile-tab .pf-role-badge.role-editor {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.dark.profile-tab .pf-role-badge.role-viewer {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.dark.profile-tab .pf-section {
  background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dark.profile-tab .pf-section-title {
  color: #f3f4f6;
}

.dark.profile-tab .pf-section-desc {
  color: #9ca3af;
}

.dark.profile-tab .pf-section .ant-form-item-label > label {
  color: #d1d5db;
}

/* ─── Profile Responsive ─── */
@media (max-width: 640px) {
  .profile-tab {
    padding: 16px;
  }

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

  .pf-fields-grid {
    grid-template-columns: 1fr;
  }

  .pf-save-row {
    justify-content: stretch;
  }

  .pf-save-btn {
    width: 100% !important;
  }
}

/* ---- Shared base for other tabs ---- */

.settings-tab {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Team Tab
   ============================================ */

.team-tab {
  padding: 28px;
  max-width: 800px;
  margin: 0 auto;
  background: #fafbfc;
}

.tm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-header-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tm-header-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.tm-header-count {
  font-size: 14px;
  color: #6b7280;
}

.tm-invite-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.tm-invite-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Member list */
.tm-list {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fe 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tm-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
  gap: 12px;
}

.tm-member:last-child {
  border-bottom: none;
}

.tm-member:hover {
  background: #fafbfc;
}

.tm-member.is-you {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.tm-member-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1;
  min-width: 0;
}

.tm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.tm-online-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 12px;
  color: #10b981;
  background: #fff;
  border-radius: 50%;
  line-height: 1;
}

.tm-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tm-member-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-member-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.tm-role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tm-role-badge.role-admin {
  background: #eef2ff;
  color: #4f46e5;
}

.tm-role-badge.role-editor {
  background: #eff6ff;
  color: #2563eb;
}

.tm-role-badge.role-viewer {
  background: #f3f4f6;
  color: #6b7280;
}

.tm-you-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
}

.tm-member-email {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-member-meta {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tm-member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tm-role-select {
  min-width: 110px;
}

.tm-role-select .ant-select-selector {
  border-radius: 8px !important;
}

.tm-remove-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Team dark mode */
.dark.team-tab { background: #111827; }
.dark.team-tab .tm-header-title { color: #f3f4f6; }
.dark.team-tab .tm-header-count { color: #9ca3af; }
.dark.team-tab .tm-list { background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.dark.team-tab .tm-member { border-bottom-color: #2d3748; }
.dark.team-tab .tm-member:hover { background: #253042; }
.dark.team-tab .tm-member.is-you { background: rgba(99,102,241,0.08); }
.dark.team-tab .tm-member-name { color: #f3f4f6; }
.dark.team-tab .tm-member-email { color: #9ca3af; }
.dark.team-tab .tm-member-meta { color: #6b7280; }
.dark.team-tab .tm-online-dot { background: #1f2937; }
.dark.team-tab .tm-role-badge.role-admin { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.dark.team-tab .tm-role-badge.role-editor { background: rgba(59,130,246,0.15); color: #93c5fd; }
.dark.team-tab .tm-role-badge.role-viewer { background: rgba(107,114,128,0.15); color: #9ca3af; }
.dark.team-tab .tm-you-badge { background: rgba(16,185,129,0.15); color: #6ee7b7; }

@media (max-width: 640px) {
  .team-tab { padding: 16px; }
  .tm-member { flex-direction: column; align-items: flex-start; }
  .tm-member-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================
   Security Tab
   ============================================ */

.security-tab {
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  background: #fafbfc;
}

.sc-section {
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fe 100%);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.sc-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sc-section-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sc-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.sc-section-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.sc-form .ant-form-item-label > label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.sc-form .ant-input-lg,
.sc-form .ant-input-password-large .ant-input {
  border-radius: 10px !important;
  font-size: 14px;
}

.sc-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 16px;
  gap: 0 16px;
}

.sc-actions-row {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.sc-primary-btn {
  height: 44px !important;
  padding: 0 28px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.2s ease !important;
}

.sc-primary-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

.sc-ghost-btn {
  height: 42px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

/* API key create button */
.sc-create-key-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sc-create-key-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

/* Empty state */
.sc-empty-keys {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.sc-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.sc-empty-keys h4 {
  font-size: 15px;
  font-weight: 650;
  color: #111827;
  margin: 0 0 4px 0;
}

.sc-empty-keys p {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Key list */
.sc-key-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(249, 250, 251, 0.8);
  transition: all 0.2s ease;
  gap: 12px;
}

.sc-key-item:hover {
  background: #f3f4f6;
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}

.sc-key-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
  min-width: 0;
}

.sc-key-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6366f1;
  flex-shrink: 0;
}

.sc-key-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sc-key-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-key-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.sc-key-prefix {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.sc-key-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sc-scope-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #6366f1;
  border: 1px solid #c7d2fe;
}

.sc-scope-tag.muted {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.sc-key-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
}

.sc-key-meta .muted {
  font-style: italic;
  opacity: 0.7;
}

.sc-key-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sc-roll-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  color: #6366f1 !important;
  border-color: #6366f1 !important;
}

.sc-roll-btn:hover {
  color: #4f46e5 !important;
  border-color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

.sc-revoke-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Security dark mode */
.dark.security-tab { background: #111827; }
.dark.security-tab .sc-section { background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.dark.security-tab .sc-section-title { color: #f3f4f6; }
.dark.security-tab .sc-section-desc { color: #9ca3af; }
.dark.security-tab .sc-form .ant-form-item-label > label { color: #d1d5db; }
.dark.security-tab .sc-empty-keys { border-color: rgba(99, 102, 241, 0.2); background: rgba(99, 102, 241, 0.03); }
.dark.security-tab .sc-empty-keys h4 { color: #f3f4f6; }
.dark.security-tab .sc-empty-icon { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.dark.security-tab .sc-key-item { background: rgba(255,255,255,0.03); border-color: rgba(255, 255, 255, 0.06); }
.dark.security-tab .sc-key-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(99, 102, 241, 0.15); }
.dark.security-tab .sc-key-icon { background: rgba(99,102,241,0.15); }
.dark.security-tab .sc-key-name { color: #f3f4f6; }
.dark.security-tab .sc-key-prefix { background: #374151; color: #9ca3af; border-color: #4b5563; }
.dark.security-tab .sc-scope-tag { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.dark.security-tab .sc-roll-btn { color: #a5b4fc !important; border-color: #6366f1 !important; background: transparent !important; }
.dark.security-tab .sc-roll-btn:hover { color: #c7d2fe !important; border-color: #818cf8 !important; background: rgba(99, 102, 241, 0.15) !important; }

@media (max-width: 640px) {
  .security-tab { padding: 16px; }
  .sc-fields-row { grid-template-columns: 1fr; }
  .sc-key-item { flex-direction: column; align-items: flex-start; }
  .sc-key-actions { margin-top: 12px; width: 100%; }
}

/* ============================================
   Billing Tab
   ============================================ */

.billing-tab {
  padding: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Current plan summary */
.bl-current {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 24px;
  margin-bottom: 28px;
}

.bl-current-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.bl-current-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bl-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6366f1;
}

.bl-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.bl-active-badge {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.bl-stat {
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #f3f4f6;
  background: #fafbfc;
  transition: all 0.15s;
}

.bl-stat:hover {
  background: #f3f4f6;
}

.bl-stat-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.bl-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6b7280;
  display: block;
  margin-bottom: 2px;
}

.bl-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  display: block;
}

.bl-stat-value.small {
  font-size: 15px;
}

/* Plan picker */
.bl-picker-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.bl-picker-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 18px 0;
}

.bl-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.bl-plan-card {
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}

.bl-plan-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.bl-plan-card.is-current {
  border: 2px solid #6366f1;
}

.bl-plan-card.is-popular {
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139,92,246,0.12);
}

.bl-card-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bl-card-badge.popular { background: #8b5cf6; }
.bl-card-badge.current { background: #6366f1; }

.bl-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.bl-card-price {
  margin-bottom: 14px;
}

.bl-price-amount {
  font-size: 30px;
  font-weight: 800;
  color: #6366f1;
}

.bl-price-period {
  font-size: 13px;
  color: #6b7280;
}

.bl-card-divider {
  height: 1px;
  background: #f3f4f6;
  margin-bottom: 14px;
}

.bl-card-features {
  flex: 1 1;
  margin-bottom: 18px;
}

.bl-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 7px;
  line-height: 1.4;
}

.bl-check {
  color: #10b981;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

.bl-plan-btn {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.bl-plan-btn.btn-current {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  cursor: default;
}

.bl-plan-btn.btn-upgrade {
  background: #6366f1;
  color: #fff;
}

.bl-plan-btn.btn-upgrade:hover {
  background: #4f46e5;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.bl-plan-btn.btn-downgrade {
  background: #fff;
  color: #6366f1;
  border: 2px solid #6366f1;
}

.bl-plan-btn.btn-downgrade:hover {
  background: #eef2ff;
}

/* Billing dark mode */
.dark.billing-tab .bl-current { background: #1f2937; border-color: #374151; }
.dark.billing-tab .bl-plan-icon { background: rgba(99,102,241,0.15); }
.dark.billing-tab .bl-plan-name { color: #f3f4f6; }
.dark.billing-tab .bl-stat { background: #1f2937; border-color: #374151; }
.dark.billing-tab .bl-stat:hover { background: #253042; }
.dark.billing-tab .bl-stat-label { color: #9ca3af; }
.dark.billing-tab .bl-stat-value { color: #f3f4f6; }
.dark.billing-tab .bl-picker-header h3 { color: #f3f4f6; }
.dark.billing-tab .bl-picker-header p { color: #9ca3af; }
.dark.billing-tab .bl-plan-card { background: #1f2937; border-color: #374151; }
.dark.billing-tab .bl-plan-card.is-popular { border-color: #8b5cf6; }
.dark.billing-tab .bl-card-name { color: #f3f4f6; }
.dark.billing-tab .bl-price-amount { color: #a5b4fc; }
.dark.billing-tab .bl-card-divider { background: #374151; }
.dark.billing-tab .bl-card-feature { color: #d1d5db; }
.dark.billing-tab .bl-plan-btn.btn-current { background: #374151; color: #9ca3af; border-color: #4b5563; }

@media (max-width: 640px) {
  .billing-tab { padding: 16px; }
  .bl-plans-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Account Tab
   ============================================ */

.account-tab {
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  background: #fafbfc;
}

.at-section {
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: linear-gradient(to bottom right, #ffffff 0%, #f8f9fe 100%);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.at-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.at-section-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.at-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.at-section-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.at-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(124, 58, 237, 0.03) 100%);
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  font-size: 13px;
  color: #6b7280;
}

.at-id-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 11px;
}

.at-id-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #374151;
  font-weight: 500;
  font-size: 12px;
  background: none;
  padding: 0;
}

.at-form .ant-form-item-label > label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.at-form .ant-input-lg {
  border-radius: 10px !important;
  height: 44px !important;
  font-size: 14px;
}

.at-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 16px;
  gap: 0 16px;
}

.at-save-btn {
  height: 44px !important;
  padding: 0 32px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3) !important;
  transition: all 0.2s ease !important;
}

.at-save-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
  transform: translateY(-1px);
}

/* Export row */
.at-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(249, 250, 251, 0.8);
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.at-export-row:hover {
  border-color: rgba(99, 102, 241, 0.1);
  background: rgba(99, 102, 241, 0.02);
}

.at-export-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.at-export-text p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  max-width: 420px;
}

.at-export-btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  height: 42px !important;
  transition: all 0.2s ease !important;
}

.at-export-btn:hover {
  border-color: #6366f1 !important;
  color: #6366f1 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15) !important;
}

.at-gdpr-note {
  font-size: 11px;
  color: #9ca3af;
  margin: 10px 0 0 0;
}

/* Danger zone */
.at-danger {
  border-radius: 16px;
  border: 2px solid #fca5a5;
  background: linear-gradient(to bottom right, #ffffff 0%, #fff5f5 100%);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.at-danger-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #fecaca;
}

.at-danger-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.at-danger-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #991b1b;
  margin: 0 0 4px 0;
}

.at-danger-header p {
  font-size: 14px;
  color: #b91c1c;
  margin: 0;
}

.at-danger-body {
  padding: 20px 24px;
}

.at-danger-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.at-danger-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.at-danger-text p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  max-width: 420px;
}

.at-delete-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(220, 38, 38, 0.06) 100%);
  color: #dc2626;
  border: 2px solid #fca5a5;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.at-delete-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Account dark mode */
.dark.account-tab { background: #111827; }
.dark.account-tab .at-section { background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.dark.account-tab .at-section-header { }
.dark.account-tab .at-section-title { color: #f3f4f6; }
.dark.account-tab .at-section-desc { color: #9ca3af; }
.dark.account-tab .at-id-row { background: rgba(99, 102, 241, 0.06); border-color: rgba(99, 102, 241, 0.12); }
.dark.account-tab .at-id-value { color: #d1d5db; }
.dark.account-tab .at-form .ant-form-item-label > label { color: #d1d5db; }
.dark.account-tab .at-export-row { background: rgba(255,255,255,0.03); border-color: rgba(255, 255, 255, 0.06); }
.dark.account-tab .at-export-text h4 { color: #f3f4f6; }
.dark.account-tab .at-export-text p { color: #9ca3af; }
.dark.account-tab .at-gdpr-note { color: #6b7280; }
.dark.account-tab .at-danger { background: linear-gradient(to bottom right, #1e293b 0%, #0f172a 100%); border-color: #991b1b; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.dark.account-tab .at-danger-header { background: linear-gradient(135deg, rgba(153,27,27,0.2), rgba(185,28,28,0.15)); border-bottom-color: rgba(153,27,27,0.3); }
.dark.account-tab .at-danger-icon { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border-color: transparent; color: #fff; }
.dark.account-tab .at-danger-text h4 { color: #f3f4f6; }
.dark.account-tab .at-danger-text p { color: #9ca3af; }
.dark.account-tab .at-delete-btn { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.3); color: #f87171; }
.dark.account-tab .at-delete-btn:hover { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }

@media (max-width: 640px) {
  .account-tab { padding: 16px; }
  .at-fields-row { grid-template-columns: 1fr; }
  .at-export-row { flex-direction: column; align-items: flex-start; }
  .at-danger-content { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   Two-Factor Section Buttons — tfs-* prefix
   ============================================= */

.tfs-btn-enable {
  height: 44px; padding: 0 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.tfs-btn-enable:hover {
  box-shadow: 0 6px 20px rgba(34,197,94,.45);
  transform: translateY(-1px);
}
.tfs-btn-enable:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.tfs-btn-secondary {
  height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.tfs-btn-secondary:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.tfs-btn-secondary.dark { border-color: #333; color: #9ca3af; }
.tfs-btn-secondary.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.tfs-btn-danger {
  height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: rgba(239,68,68,.08); color: #ef4444;
  border: 1px solid rgba(239,68,68,.2);
  transition: all .15s;
}
.tfs-btn-danger:hover {
  background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3);
}

.tfs-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: tfsSpin .6s linear infinite;
}
@keyframes tfsSpin { to { transform: rotate(360deg); } }


/* =============================================
   Enable 2FA Modal — etf-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.etf-root .ant-modal-header,
.etf-root .ant-modal-footer,
.etf-root .ant-modal-close { display: none !important; }
.etf-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.etf-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.etf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(34,197,94,.06) 0%, rgba(22,163,74,.04) 100%);
  border-bottom: 1px solid rgba(34,197,94,.08);
}
.etf-header.dark {
  background: linear-gradient(135deg, rgba(34,197,94,.10) 0%, rgba(22,163,74,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.etf-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
  flex-shrink: 0;
}

.etf-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.etf-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.etf-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.etf-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Progress Steps ── */
.etf-progress {
  display: flex; justify-content: center; gap: 32px;
  padding: 16px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.etf-progress.dark {
  background: #111111;
  border-bottom-color: #1f1f1f;
}

.etf-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.etf-progress-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: #e5e7eb; color: #9ca3af;
  transition: all .2s;
}
.etf-progress-step.active .etf-progress-dot {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}
.etf-progress-step.dark .etf-progress-dot { background: #292929; color: #6b7280; }
.etf-progress-step.dark.active .etf-progress-dot {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.etf-progress-label {
  font-size: 11px; font-weight: 500; color: #9ca3af;
}
.etf-progress-step.active .etf-progress-label { color: #22c55e; font-weight: 600; }

/* ── Body ── */
.etf-body {
  padding: 20px;
  min-height: 320px;
}
.etf-body.dark { background: #0a0a0a; }

/* ── Step Content ── */
.etf-step-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

.etf-step-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.etf-step-icon.purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 6px 20px rgba(168,85,247,.35);
}
.etf-step-icon.indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}
.etf-step-icon.green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 6px 20px rgba(34,197,94,.35);
}

.etf-step-title {
  font-size: 18px; font-weight: 600; margin-bottom: 6px;
}

.etf-step-desc {
  font-size: 13px; color: #6b7280; margin-bottom: 20px;
}
.etf-step-desc.dark { color: #9ca3af; }

/* ── QR Code ── */
.etf-qr-container {
  padding: 14px; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-bottom: 16px;
}

.etf-manual-entry {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.etf-manual-label {
  font-size: 12px; color: #9ca3af;
}

.etf-secret-box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: #f3f4f6; font-family: monospace; font-size: 13px;
}
.etf-secret-box.dark { background: #1f1f1f; }
.etf-secret-box code { color: #374151; }
.etf-secret-box.dark code { color: #e5e7eb; }

.etf-copy-btn {
  width: 24px; height: 24px; border-radius: 6px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.05); color: #6b7280; cursor: pointer;
  transition: all .15s;
}
.etf-copy-btn:hover { background: rgba(0,0,0,.1); color: #374151; }
.etf-copy-btn.dark { background: rgba(255,255,255,.08); color: #9ca3af; }
.etf-copy-btn.dark:hover { background: rgba(255,255,255,.12); color: #e5e7eb; }

/* ── Code Input ── */
.etf-code-input-wrapper { margin-bottom: 20px; }

.etf-code-input {
  width: 180px; height: 52px; border-radius: 12px;
  text-align: center; font-size: 28px; letter-spacing: 10px;
  font-family: monospace; border: 2px solid #e5e7eb;
  background: #fff; color: #111827;
  transition: all .15s;
}
.etf-code-input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.etf-code-input.dark {
  background: #1a1a1a; border-color: #333; color: #f3f4f6;
}
.etf-code-input.dark:focus { border-color: #6366f1; }

/* ── Verify Button ── */
.etf-btn-verify {
  height: 44px; padding: 0 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.etf-btn-verify:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(34,197,94,.45);
  transform: translateY(-1px);
}
.etf-btn-verify:disabled { opacity: .5; cursor: not-allowed; }

.etf-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: etfSpin .6s linear infinite;
}
@keyframes etfSpin { to { transform: rotate(360deg); } }

/* ── Warning Box ── */
.etf-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.15);
  color: #f59e0b; font-size: 12px; text-align: left;
  width: 100%;
}
.etf-warning-box.dark {
  background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.20);
  color: #fbbf24;
}

/* ── Codes Grid ── */
.etf-codes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 8px; gap: 8px;
  width: 100%; margin-bottom: 16px;
}

.etf-code-item {
  padding: 10px 12px; border-radius: 8px;
  font-family: monospace; font-size: 13px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  color: #374151;
}
.etf-code-item.dark {
  background: #1a1a1a; border-color: #292929; color: #e5e7eb;
}

/* ── Copy Button ── */
.etf-btn-copy {
  height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.etf-btn-copy:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.etf-btn-copy.dark { border-color: #333; color: #9ca3af; }
.etf-btn-copy.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

/* ── Footer ── */
.etf-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.etf-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.etf-btn-back {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.etf-btn-back:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.etf-btn-back.dark { border-color: #333; color: #9ca3af; }
.etf-btn-back.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.etf-btn-continue {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 2px 8px rgba(168,85,247,.35);
  transition: all .15s;
}
.etf-btn-continue:hover {
  box-shadow: 0 4px 16px rgba(168,85,247,.45);
  transform: translateY(-1px);
}

.etf-btn-done {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.etf-btn-done:hover {
  box-shadow: 0 4px 16px rgba(34,197,94,.45);
  transform: translateY(-1px);
}


/* =============================================
   Disable 2FA Modal — dtf-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.dtf-root .ant-modal-header,
.dtf-root .ant-modal-footer,
.dtf-root .ant-modal-close { display: none !important; }
.dtf-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.dtf-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.dtf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245,158,11,.06) 0%, rgba(217,119,6,.04) 100%);
  border-bottom: 1px solid rgba(245,158,11,.08);
}
.dtf-header.dark {
  background: linear-gradient(135deg, rgba(245,158,11,.10) 0%, rgba(217,119,6,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.dtf-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
  flex-shrink: 0;
}

.dtf-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.dtf-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.dtf-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.dtf-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.dtf-body { padding: 20px; }

/* ── Warning Box ── */
.dtf-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 20px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.15);
  color: #f59e0b; font-size: 12px; line-height: 1.5;
}
.dtf-warning-box.dark {
  background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.20);
  color: #fbbf24;
}

/* ── Field ── */
.dtf-field { margin-bottom: 16px; }
.dtf-field:last-child { margin-bottom: 0; }

.dtf-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #6b7280; margin-bottom: 6px;
}
.dtf-label.dark { color: #9ca3af; }

.dtf-input-wrapper {
  position: relative; display: flex; align-items: center;
}

.dtf-input {
  width: 100%; height: 42px; padding: 0 40px 0 14px;
  border-radius: 10px; border: 1px solid #e5e7eb;
  font-size: 13px; background: #fff; color: #111827;
  transition: all .15s;
}
.dtf-input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.dtf-input.dark {
  background: #1a1a1a; border-color: #292929; color: #f3f4f6;
}
.dtf-input.dark:focus { border-color: #6366f1; }
.dtf-input::placeholder { color: #9ca3af; }
.dtf-input.dark::placeholder { color: #4b5563; }

.dtf-toggle-btn {
  position: absolute; right: 10px;
  width: 28px; height: 28px; border-radius: 6px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.dtf-toggle-btn:hover { color: #6b7280; background: rgba(0,0,0,.04); }
.dtf-toggle-btn.dark:hover { color: #d1d5db; background: rgba(255,255,255,.06); }

/* ── Footer ── */
.dtf-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.dtf-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.dtf-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.dtf-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.dtf-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.dtf-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.dtf-btn-disable {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239,68,68,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.dtf-btn-disable:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(239,68,68,.45);
  transform: translateY(-1px);
}
.dtf-btn-disable:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.dtf-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: dtfSpin .6s linear infinite;
}
@keyframes dtfSpin { to { transform: rotate(360deg); } }


/* =============================================
   Recovery Codes Modal — rcm-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.rcm-root .ant-modal-header,
.rcm-root .ant-modal-footer,
.rcm-root .ant-modal-close { display: none !important; }
.rcm-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.rcm-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.rcm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(168,85,247,.06) 0%, rgba(139,92,246,.04) 100%);
  border-bottom: 1px solid rgba(168,85,247,.08);
}
.rcm-header.dark {
  background: linear-gradient(135deg, rgba(168,85,247,.10) 0%, rgba(139,92,246,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.rcm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 12px rgba(168,85,247,.35);
  flex-shrink: 0;
  transition: all .3s;
}
.rcm-header-icon.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
}

.rcm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.rcm-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.rcm-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.rcm-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.rcm-body { padding: 20px; }

/* ── Warning Box ── */
.rcm-warning-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 20px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.15);
  color: #f59e0b; font-size: 12px; line-height: 1.5;
}
.rcm-warning-box.dark {
  background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.20);
  color: #fbbf24;
}

/* ── Success Box ── */
.rcm-success-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.15);
  color: #22c55e; font-size: 12px; line-height: 1.5;
}
.rcm-success-box.dark {
  background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.20);
  color: #4ade80;
}

/* ── Generate Button ── */
.rcm-btn-generate {
  width: 100%; height: 44px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 14px rgba(168,85,247,.35);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s;
}
.rcm-btn-generate:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(168,85,247,.45);
  transform: translateY(-1px);
}
.rcm-btn-generate:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.rcm-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: rcmSpin .6s linear infinite;
}
@keyframes rcmSpin { to { transform: rotate(360deg); } }

/* ── Codes Grid ── */
.rcm-codes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 8px; gap: 8px;
  margin-bottom: 16px;
}

.rcm-code-item {
  padding: 10px 12px; border-radius: 8px;
  font-family: monospace; font-size: 13px; text-align: center;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  color: #374151;
}
.rcm-code-item.dark {
  background: #1a1a1a; border-color: #292929; color: #e5e7eb;
}

/* ── Copy Button ── */
.rcm-btn-copy {
  width: 100%; height: 36px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.rcm-btn-copy:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.rcm-btn-copy.dark { border-color: #333; color: #9ca3af; }
.rcm-btn-copy.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

/* ── Footer ── */
.rcm-footer {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.rcm-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.rcm-btn-done {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.rcm-btn-done:hover {
  box-shadow: 0 4px 16px rgba(34,197,94,.45);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .etf-header, .dtf-header, .rcm-header { padding: 14px 16px; }
  .etf-body, .dtf-body, .rcm-body { padding: 16px; }
  .etf-footer, .dtf-footer, .rcm-footer { padding: 12px 16px; }
  .etf-progress { gap: 20px; padding: 14px 16px; }
  .etf-codes-grid, .rcm-codes-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Create API Key Modal — cak-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.cak-root .ant-modal-header,
.cak-root .ant-modal-footer,
.cak-root .ant-modal-close { display: none !important; }
.cak-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.cak-root .ant-modal-body { padding: 0 !important; }

/* ── Header ── */
.cak-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(79,70,229,.04) 100%);
  border-bottom: 1px solid rgba(99,102,241,.08);
}
.cak-header.dark {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(79,70,229,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.cak-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  flex-shrink: 0;
}

.cak-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.cak-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.cak-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.cak-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Progress Steps ── */
.cak-progress {
  display: flex; justify-content: center; gap: 32px;
  padding: 14px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.cak-progress.dark {
  background: #111111;
  border-bottom-color: #1f1f1f;
}

.cak-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.cak-progress-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: #e5e7eb; color: #9ca3af;
  transition: all .2s;
}
.cak-progress-step.active .cak-progress-dot {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.cak-progress-step.dark .cak-progress-dot { background: #292929; color: #6b7280; }
.cak-progress-step.dark.active .cak-progress-dot {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.cak-progress-label {
  font-size: 11px; font-weight: 500; color: #9ca3af;
}
.cak-progress-step.active .cak-progress-label { color: #6366f1; font-weight: 600; }

/* ── Body ── */
.cak-body {
  padding: 20px;
  min-height: 300px;
}
.cak-body.dark { background: #0a0a0a; }

/* ── Footer ── */
.cak-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.cak-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.cak-btn-back {
  height: 38px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.cak-btn-back:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.cak-btn-back.dark { border-color: #333; color: #9ca3af; }
.cak-btn-back.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.cak-btn-continue {
  height: 38px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.cak-btn-continue:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
  transform: translateY(-1px);
}
.cak-btn-continue:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.cak-btn-create {
  height: 38px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.cak-btn-create:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(34,197,94,.45);
  transform: translateY(-1px);
}
.cak-btn-create:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.cak-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: cakSpin .6s linear infinite;
}
@keyframes cakSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .cak-header { padding: 14px 16px; }
  .cak-progress { gap: 20px; padding: 12px 16px; }
  .cak-body { padding: 16px; min-height: 260px; }
  .cak-footer { padding: 12px 16px; }
}

/* ========================================
   Downgrade Blocker Modal Styles
   ======================================== */

.downgrade-blocker-modal .ant-modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.downgrade-blocker-modal.dark-modal .ant-modal-content {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.downgrade-blocker-content {
  padding: 8px;
}

.downgrade-blocker-content.dark {
  color: #e5e7eb;
}

/* Modal Header */
.downgrade-blocker-content .modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.downgrade-blocker-content .header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.downgrade-blocker-content .header-icon.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.downgrade-blocker-content.dark .header-icon.warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  color: #fbbf24;
}

.downgrade-blocker-content .header-text h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.downgrade-blocker-content.dark .header-text h2 {
  color: #f3f4f6;
}

.downgrade-blocker-content .header-text p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.downgrade-blocker-content.dark .header-text p {
  color: #9ca3af;
}

/* Summary Alert */
.downgrade-blocker-content .summary-alert {
  border-radius: 10px;
  margin-bottom: 20px;
}

.downgrade-blocker-content.dark .summary-alert {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.downgrade-blocker-content.dark .summary-alert .ant-alert-message,
.downgrade-blocker-content.dark .summary-alert .ant-alert-description {
  color: #fcd34d;
}

/* Blockers Section */
.downgrade-blocker-content .blockers-section {
  margin-bottom: 16px;
  max-height: 380px;
  overflow-y: auto;
}

.downgrade-blocker-content .blockers-collapse {
  background: transparent;
  border: none;
}

.downgrade-blocker-content .blockers-collapse .ant-collapse-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.downgrade-blocker-content.dark .blockers-collapse .ant-collapse-item {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.08);
}

.downgrade-blocker-content .blockers-collapse .ant-collapse-header {
  padding: 14px 16px !important;
  align-items: center !important;
}

.downgrade-blocker-content.dark .blockers-collapse .ant-collapse-header {
  color: #e5e7eb;
}

.downgrade-blocker-content .blockers-collapse .ant-collapse-content {
  border-top: 1px solid #e5e7eb;
}

.downgrade-blocker-content.dark .blockers-collapse .ant-collapse-content {
  background: #2d3748;
  border-color: rgba(255, 255, 255, 0.06);
}

.downgrade-blocker-content.dark .blockers-collapse .ant-collapse-content-box {
  color: #d1d5db;
}

/* Blocker Header */
.blocker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.blocker-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocker-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.blocker-title-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blocker-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.downgrade-blocker-content.dark .blocker-title {
  color: #f3f4f6;
}

.blocker-excess {
  display: flex;
}

.blocker-header-right {
  display: flex;
  align-items: center;
}

.blocker-count {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.downgrade-blocker-content.dark .blocker-count {
  background: rgba(239, 68, 68, 0.2);
}

/* Blocker Content */
.blocker-content {
  padding: 4px 0;
}

.blocker-description {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.downgrade-blocker-content.dark .blocker-description {
  color: #9ca3af;
}

.blocker-progress-section {
  margin-bottom: 14px;
}

.blocker-progress-section .ant-progress-text {
  font-size: 12px;
  font-weight: 600;
}

.blocker-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  margin-bottom: 12px;
}

.downgrade-blocker-content.dark .blocker-action {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

.action-required {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
}

.downgrade-blocker-content.dark .action-required {
  color: #fcd34d;
}

.action-button {
  flex-shrink: 0;
}

/* Affected Items */
.affected-items-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.downgrade-blocker-content.dark .affected-items-section {
  border-color: rgba(255, 255, 255, 0.08);
}

.affected-items-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.downgrade-blocker-content.dark .affected-items-header {
  color: #9ca3af;
}

.blocker-items-list {
  background: transparent;
}

.blocker-items-list .ant-list-item {
  padding: 8px 0 !important;
  border-bottom: 1px dashed #e5e7eb !important;
}

.downgrade-blocker-content.dark .blocker-items-list .ant-list-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.blocker-items-list .ant-list-item:last-child {
  border-bottom: none !important;
}

.blocker-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blocker-item-content .item-name {
  font-weight: 500;
  font-size: 13px;
  color: #374151;
}

.downgrade-blocker-content.dark .blocker-item-content .item-name {
  color: #e5e7eb;
}

.blocker-item-content .item-meta {
  font-size: 12px;
  color: #9ca3af;
}

.items-overflow {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  padding: 8px 0 4px;
}

/* Help Section */
.help-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 13px;
  color: #047857;
  margin-bottom: 20px;
}

.downgrade-blocker-content.dark .help-section {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Modal Footer */
.downgrade-blocker-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.downgrade-blocker-content.dark .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Scrollbar styling */
.blockers-section::-webkit-scrollbar {
  width: 6px;
}

.blockers-section::-webkit-scrollbar-track {
  background: transparent;
}

.blockers-section::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.downgrade-blocker-content.dark .blockers-section::-webkit-scrollbar-thumb {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 640px) {
  .downgrade-blocker-content .modal-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .blocker-action {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .action-required {
    justify-content: center;
  }
  
  .downgrade-blocker-content .modal-footer {
    flex-direction: column;
  }
  
  .downgrade-blocker-content .modal-footer button {
    width: 100%;
  }
}

/* ============================================
   Notification Channel Modal — Media Luna
   Mirrors AddMonitorModal / BulkUpload design.
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.ncm-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.ncm-root .ant-modal-header  { display: none !important; }
.ncm-root .ant-modal-body    { padding: 0 !important; }
.ncm-root .ant-modal-close   { display: none !important; }

/* ── Header ── */
.ncm-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.ncm-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}

.ncm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.ncm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ncm-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.ncm-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Scrollable body ── */
.ncm-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 130px);
  overflow-y: auto; overflow-x: hidden;
}
.ncm-body::-webkit-scrollbar       { width: 4px; }
.ncm-body::-webkit-scrollbar-track  { background: transparent; }
.ncm-body::-webkit-scrollbar-thumb  { background: rgba(0,0,0,0.08); border-radius: 2px; }
.ncm-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.ncm-body.dark::-webkit-scrollbar-thumb       { background: rgba(255,255,255,0.06); }
.ncm-body.dark::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.1); }

/* ── Section label ── */
.ncm-label {
  display: block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; margin-bottom: 6px;
}
.ncm-label.dark { color: #9ca3af; }

/* ── Field label (for email section etc.) ── */
.ncm-field-label {
  display: block; font-size: 12px; font-weight: 500;
  color: #374151; margin-bottom: 4px;
}
.ncm-field-label.dark { color: #d1d5db; }

/* ── Type picker grid ── */
.ncm-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 5px;
  gap: 5px;
}
@media (max-width: 560px) {
  .ncm-type-grid { grid-template-columns: repeat(3, 1fr); }
}

.ncm-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px 7px; border-radius: 9px;
  border: 1.5px solid transparent; background: #f8f9fb;
  cursor: pointer; transition: all 0.15s; -webkit-user-select: none; user-select: none; outline: none;
}
.ncm-type-btn:hover:not(.disabled)     { background: #f0f1f5; border-color: rgba(99,102,241,0.15); }
.ncm-type-btn.active                    { border-color: #6366f1; background: rgba(99,102,241,0.06); box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }
.ncm-type-btn.disabled                  { opacity: 0.45; cursor: not-allowed; }
.ncm-type-btn.disabled:hover            { background: #f8f9fb; border-color: transparent; }

.ncm-type-btn.dark                      { background: rgba(255,255,255,0.03); }
.ncm-type-btn.dark:hover:not(.disabled) { background: rgba(255,255,255,0.06); border-color: rgba(99,102,241,0.2); }
.ncm-type-btn.dark.active              { background: rgba(99,102,241,0.1); border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }

.ncm-type-icon { font-size: 17px; color: #9ca3af; line-height: 1; transition: color 0.15s; }
.ncm-type-btn.active .ncm-type-icon               { color: #6366f1; }
.ncm-type-btn:hover:not(.disabled) .ncm-type-icon  { color: #6366f1; }
.ncm-type-btn.dark .ncm-type-icon                  { color: #6b7280; }
.ncm-type-btn.dark.active .ncm-type-icon           { color: #a5b4fc; }

.ncm-type-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2px; color: #9ca3af; text-align: center; }
.ncm-type-btn.active .ncm-type-label      { color: #6366f1; }
.ncm-type-btn.dark .ncm-type-label         { color: #6b7280; }
.ncm-type-btn.dark.active .ncm-type-label  { color: #a5b4fc; }

/* ── Config box ── */
.ncm-config-box {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06); background: #fafbfc;
}
.ncm-config-box.dark { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06); }

/* ── Email tag ── */
.ncm-email-tag {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(99,102,241,0.04); border: 1px solid rgba(99,102,241,0.1);
}
.ncm-email-tag.dark { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.15); }

.ncm-email-remove {
  color: #d1d5db; cursor: pointer; padding: 2px; border-radius: 4px;
  transition: all 0.15s; border: none; background: none;
  display: flex; align-items: center;
}
.ncm-email-remove:hover { color: #ef4444; background: rgba(239,68,68,0.08); }
.ncm-email-remove.dark   { color: #4b5563; }
.ncm-email-remove.dark:hover { color: #f87171; background: rgba(239,68,68,0.12); }

/* ── Add email button ── */
.ncm-add-email-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 16px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 600; color: #fff;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.ncm-add-email-btn:hover {
  background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

/* ── Empty hint ── */
.ncm-empty-hint {
  font-size: 11px; padding: 6px 10px; border-radius: 7px;
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.12); color: #f59e0b;
}
.ncm-empty-hint.dark { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.15); color: #fbbf24; }

/* ── Footer ── */
.ncm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.ncm-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}

.ncm-btn-cancel {
  padding: 7px 18px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.ncm-btn-cancel:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.ncm-btn-cancel.dark   { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.ncm-btn-cancel.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }

.ncm-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.ncm-btn-submit:hover   { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.ncm-btn-submit:active  { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.ncm-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Ant overrides inside ncm-root ── */
.ncm-root .ant-input,
.ncm-root .ant-input-affix-wrapper,
.ncm-root .ant-input-password,
.ncm-root .ant-select-selector { border-radius: 10px !important; }

.ncm-root .ant-input-affix-wrapper .ant-input {
  background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
}
.ncm-root .ant-form-item { margin-bottom: 12px; }
.ncm-root .ant-form-item-label { padding-bottom: 2px !important; }
.ncm-root .ant-form-item-label > label { font-size: 12px !important; font-weight: 500 !important; }

/* Dark Ant overrides */
.themed-modal.dark-modal .ncm-root .ant-form-item-label > label { color: #d1d5db !important; }
.themed-modal.dark-modal .ncm-root .ant-form-item-extra           { color: #6b7280 !important; }
.themed-modal.dark-modal .ncm-root .ant-input-password .ant-input-suffix .anticon:hover { color: #a5b4fc !important; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .ncm-header { padding: 14px 16px 12px; }
  .ncm-body   { padding: 14px 16px 8px; }
  .ncm-footer { padding: 12px 16px; }
}

/* ============================================
   Status Page Modal — Media Luna
   Prefix: spm-
   ============================================ */

/* ── Root: hide default Ant chrome ── */
.spm-root .ant-modal-content { border-radius: 14px !important; overflow: hidden; padding: 0 !important; }
.spm-root .ant-modal-header  { display: none !important; }
.spm-root .ant-modal-body    { padding: 0 !important; }
.spm-root .ant-modal-close   { display: none !important; }

/* ── Header ── */
.spm-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.spm-header.dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}

.spm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.spm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: transparent; color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.spm-close-btn:hover { background: rgba(0,0,0,0.04); color: #6b7280; }
.spm-close-btn.dark:hover { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* ── Step indicator bar ── */
.spm-steps {
  display: flex; gap: 5px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.spm-steps.dark { border-bottom-color: rgba(255,255,255,0.04); }

.spm-step-btn {
  flex: 1 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 8px; border-radius: 9px; border: 1.5px solid transparent;
  background: #f8f9fb; cursor: default;
  transition: all 0.15s; -webkit-user-select: none; user-select: none; outline: none;
}
.spm-step-btn.active { border-color: #6366f1; background: rgba(99,102,241,0.05); box-shadow: 0 0 0 2px rgba(99,102,241,0.06); }
.spm-step-btn.done   { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.04); cursor: pointer; }
.spm-step-btn.done:hover { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.06); }

.spm-step-btn.dark { background: rgba(255,255,255,0.03); }
.spm-step-btn.dark.active { border-color: #6366f1; background: rgba(99,102,241,0.08); box-shadow: 0 0 0 2px rgba(99,102,241,0.1); }
.spm-step-btn.dark.done { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.06); }
.spm-step-btn.dark.done:hover { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.1); }

.spm-step-icon { font-size: 13px; color: #9ca3af; display: flex; align-items: center; }
.spm-step-btn.active .spm-step-icon { color: #6366f1; }
.spm-step-btn.done .spm-step-icon   { color: #10b981; }
.spm-step-btn.dark .spm-step-icon   { color: #6b7280; }
.spm-step-btn.dark.active .spm-step-icon { color: #a5b4fc; }
.spm-step-btn.dark.done .spm-step-icon   { color: #34d399; }

.spm-step-text { font-size: 12px; font-weight: 600; color: #9ca3af; }
.spm-step-btn.active .spm-step-text { color: #6366f1; }
.spm-step-btn.done .spm-step-text   { color: #10b981; }
.spm-step-btn.dark .spm-step-text   { color: #6b7280; }
.spm-step-btn.dark.active .spm-step-text { color: #a5b4fc; }
.spm-step-btn.dark.done .spm-step-text   { color: #34d399; }

/* ── Scrollable body ── */
.spm-body {
  padding: 18px 22px 8px;
  max-height: calc(80vh - 180px);
  overflow-y: auto; overflow-x: hidden;
}
.spm-body::-webkit-scrollbar       { width: 4px; }
.spm-body::-webkit-scrollbar-track  { background: transparent; }
.spm-body::-webkit-scrollbar-thumb  { background: rgba(0,0,0,0.08); border-radius: 2px; }
.spm-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.14); }
.spm-body.dark::-webkit-scrollbar-thumb       { background: rgba(255,255,255,0.06); }
.spm-body.dark::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.1); }

/* ── Section label ── */
.spm-label {
  display: block; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; margin-bottom: 6px;
}
.spm-label.dark { color: #9ca3af; }

/* ── Config box ── */
.spm-config-box {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06); background: #fafbfc;
}
.spm-config-box.dark { background: rgba(255,255,255,0.025); border-color: rgba(255,255,255,0.06); }

/* ── URL preview ── */
.spm-url-preview {
  padding: 8px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04);
}
.spm-url-preview.dark { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.06); }

/* ── Info hint ── */
.spm-info-hint {
  display: flex; gap: 8px; padding: 8px 12px; border-radius: 8px;
  background: rgba(59,130,246,0.04); border: 1px solid rgba(59,130,246,0.12);
}
.spm-info-hint.amber { background: rgba(245,158,11,0.04); border-color: rgba(245,158,11,0.12); }
.spm-info-hint.dark { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.15); }
.spm-info-hint.amber.dark { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.15); }

/* ── Auto mode card ── */
.spm-auto-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid rgba(16,185,129,0.2); background: rgba(16,185,129,0.04);
}
.spm-auto-card.dark { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.06); }

.spm-auto-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,0.12); color: #10b981; font-size: 15px;
}
.spm-auto-card.dark .spm-auto-icon { background: rgba(16,185,129,0.2); color: #34d399; }

/* ── Monitor card ── */
.spm-monitor-card {
  padding: 10px 12px; border-radius: 9px;
  border: 1.5px solid transparent; background: #f8f9fb;
  transition: all 0.15s;
}
.spm-monitor-card:hover { background: #f0f1f5; border-color: rgba(99,102,241,0.12); }
.spm-monitor-card.active { border-color: #6366f1; background: rgba(99,102,241,0.05); box-shadow: 0 0 0 2px rgba(99,102,241,0.06); }

.spm-monitor-card.dark { background: rgba(255,255,255,0.03); }
.spm-monitor-card.dark:hover { background: rgba(255,255,255,0.05); border-color: rgba(99,102,241,0.15); }
.spm-monitor-card.dark.active { background: rgba(99,102,241,0.08); border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.1); }

.spm-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.spm-status-dot.up      { background: #22c55e; }
.spm-status-dot.down    { background: #ef4444; }
.spm-status-dot.unknown { background: #f59e0b; }

/* ── Selected count ── */
.spm-selected-count {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12);
}
.spm-selected-count.dark { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.2); }

/* ── Setting toggle row ── */
.spm-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.03);
}
.spm-setting-row:last-child { border-bottom: none; }
.spm-setting-row.dark { border-bottom-color: rgba(255,255,255,0.03); }

/* ── Pro / Enterprise badges ── */
.spm-pro-badge {
  display: inline-flex; align-items: center; padding: 0 5px;
  border-radius: 4px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff; font-size: 9px; font-weight: 700; height: 16px;
  line-height: 16px; margin-left: 4px; letter-spacing: 0.3px;
}
.spm-enterprise-badge {
  display: inline-flex; align-items: center; padding: 0 5px;
  border-radius: 4px; background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff; font-size: 9px; font-weight: 700; height: 16px;
  line-height: 16px; margin-left: 4px; letter-spacing: 0.3px;
}

/* ── Pro feature box ── */
.spm-pro-box {
  padding: 12px 14px; border-radius: 9px;
  border: 1px solid rgba(245,158,11,0.15); background: rgba(245,158,11,0.03);
}
.spm-pro-box.disabled { opacity: 0.55; }
.spm-pro-box.dark { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.05); }

/* ── Plan summary box ── */
.spm-plan-box {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.1); background: rgba(99,102,241,0.03);
}
.spm-plan-box.dark { border-color: rgba(99,102,241,0.15); background: rgba(99,102,241,0.05); }

/* ── Footer ── */
.spm-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.spm-footer.dark {
  background: rgba(30,41,59,0.9);
  border-top-color: rgba(255,255,255,0.06);
}

.spm-btn-back {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  font-size: 13px; font-weight: 550; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
}
.spm-btn-back:hover { border-color: rgba(0,0,0,0.2); color: #374151; }
.spm-btn-back.dark { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.spm-btn-back.dark:hover { border-color: rgba(255,255,255,0.2); color: #e5e7eb; }

.spm-btn-submit {
  padding: 7px 20px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  font-size: 13px; font-weight: 650; color: #fff;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
  display: inline-flex; align-items: center;
}
.spm-btn-submit:hover   { background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-0.5px); }
.spm-btn-submit:active  { transform: translateY(0); box-shadow: 0 1px 6px rgba(99,102,241,0.25); }
.spm-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Ant overrides inside spm-root ── */
.spm-root .ant-input,
.spm-root .ant-input-affix-wrapper,
.spm-root .ant-input-password,
.spm-root .ant-select-selector { border-radius: 10px !important; }

.spm-root .ant-input-affix-wrapper .ant-input {
  background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
}
.spm-root .ant-select { background: transparent !important; background-color: transparent !important; }
.spm-root .ant-select-selection-search-input { background: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; }
.spm-root .ant-form-item { margin-bottom: 12px; }
.spm-root .ant-form-item-label { padding-bottom: 2px !important; }
.spm-root .ant-form-item-label > label { font-size: 12px !important; font-weight: 500 !important; }

/* ── Dark Ant overrides ── */
.themed-modal.dark-modal .spm-root .ant-form-item-label > label { color: #d1d5db !important; }
.themed-modal.dark-modal .spm-root .ant-form-item-extra { color: #6b7280 !important; }
.themed-modal.dark-modal .spm-root .ant-switch:not(.ant-switch-checked) { background: rgba(255,255,255,0.15) !important; }
.themed-modal.dark-modal .spm-root .ant-divider { border-color: rgba(255,255,255,0.06) !important; }
.themed-modal.dark-modal .spm-root .ant-input,
.themed-modal.dark-modal .spm-root .ant-input-affix-wrapper,
.themed-modal.dark-modal .spm-root textarea.ant-input { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.12) !important; color: #e5e7eb !important; }
.themed-modal.dark-modal .spm-root .ant-input-group-addon { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.12) !important; color: #a5b4fc !important; }
.themed-modal.dark-modal .spm-root .ant-input::placeholder,
.themed-modal.dark-modal .spm-root textarea.ant-input::placeholder { color: #6b7280 !important; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .spm-header { padding: 14px 16px 12px; }
  .spm-steps  { padding: 10px 16px; }
  .spm-body   { padding: 14px 16px 8px; }
  .spm-footer { padding: 12px 16px; }
  .spm-step-text { display: none; }
}

/* =============================================
   System Admin Modal — sam-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.sam-root .ant-modal-header,
.sam-root .ant-modal-footer,
.sam-root .ant-modal-close { display: none !important; }
.sam-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}
.sam-root .ant-modal-body { padding: 0 !important; }

/* ── Loading ── */
.sam-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0;
}

/* ── Header ── */
.sam-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(79,70,229,.04) 100%);
  border-bottom: 1px solid rgba(99,102,241,.08);
}
.sam-header.dark {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(79,70,229,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.sam-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  flex-shrink: 0;
}

.sam-status-badge {
  display: inline-flex; padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}
.sam-status-badge.active {
  background: rgba(34,197,94,.12); color: #22c55e;
}
.sam-status-badge.disabled {
  background: rgba(239,68,68,.12); color: #ef4444;
}

.sam-refresh-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.1); color: #6366f1; cursor: pointer;
  transition: all .15s;
}
.sam-refresh-btn:hover { background: rgba(99,102,241,.18); }
.sam-refresh-btn.dark { background: rgba(99,102,241,.15); color: #818cf8; }
.sam-refresh-btn.dark:hover { background: rgba(99,102,241,.25); }

.sam-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.sam-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.sam-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.sam-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.sam-body {
  max-height: 70vh;
  overflow-y: auto;
}
.sam-body.dark { background: #0a0a0a; }

/* ── Tabs ── */
.sam-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.sam-tabs.dark {
  background: #111111;
  border-bottom-color: #1f1f1f;
}

.sam-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; border: none;
  color: #6b7280;
  transition: all .15s;
}
.sam-tab:hover { background: rgba(0,0,0,.04); color: #374151; }
.sam-tab.dark { color: #9ca3af; }
.sam-tab.dark:hover { background: rgba(255,255,255,.06); color: #d1d5db; }

.sam-tab.active {
  background: rgba(99,102,241,.1); color: #6366f1;
}
.sam-tab.active.dark {
  background: rgba(99,102,241,.15); color: #818cf8;
}

/* ── Tab Content ── */
.sam-tab-content {
  padding: 20px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .sam-header { padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .sam-tabs { padding: 10px 16px; overflow-x: auto; }
  .sam-tab-content { padding: 16px; }
}

/* =============================================
   Maintenance Window Modal  —  mwm-* prefix
   ============================================= */

/* ── Ant chrome reset ── */
.mwm-root .ant-modal-header,
.mwm-root .ant-modal-footer,
.mwm-root .ant-modal-close { display: none !important; }
.mwm-root .ant-modal-content {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
}

/* ── Header ── */
.mwm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.04) 100%);
  border-bottom: 1px solid rgba(99,102,241,.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.mwm-header.dark {
  background: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(139,92,246,.06) 100%);
  border-bottom-color: #1f1f1f;
}

.mwm-header-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  flex-shrink: 0;
}

.mwm-close-btn {
  width: 28px; height: 28px; border-radius: 8px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04); color: #9ca3af; cursor: pointer;
  transition: all .15s;
}
.mwm-close-btn:hover { background: rgba(0,0,0,.08); color: #6b7280; }
.mwm-close-btn.dark { background: rgba(255,255,255,.06); color: #6b7280; }
.mwm-close-btn.dark:hover { background: rgba(255,255,255,.10); color: #d1d5db; }

/* ── Body ── */
.mwm-body {
  padding: 20px 20px 8px;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
}
.mwm-body::-webkit-scrollbar { width: 4px; }
.mwm-body::-webkit-scrollbar-track { background: transparent; }
.mwm-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.mwm-body.dark::-webkit-scrollbar-thumb { background: #333; }

/* ── Section ── */
.mwm-section {
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.mwm-section.last, .mwm-section:last-child {
  border-bottom: none; padding-bottom: 0; margin-bottom: 4px;
}
.mwm-section.dark { border-bottom-color: #1f1f1f; }

/* ── Section icon ── */
.mwm-section-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mwm-section-icon.amber  { background: rgba(245,158,11,.10); color: #f59e0b; }
.mwm-section-icon.indigo { background: rgba(99,102,241,.10); color: #6366f1; }
.mwm-section-icon.blue   { background: rgba(59,130,246,.10); color: #3b82f6; }
.mwm-section-icon.green  { background: rgba(34,197,94,.10);  color: #22c55e; }
.mwm-section-icon.purple { background: rgba(139,92,246,.10); color: #8b5cf6; }

/* dark icons */
.themed-modal.dark-modal .mwm-section-icon.amber  { background: rgba(245,158,11,.15); color: #fbbf24; }
.themed-modal.dark-modal .mwm-section-icon.indigo { background: rgba(99,102,241,.15); color: #a5b4fc; }
.themed-modal.dark-modal .mwm-section-icon.blue   { background: rgba(59,130,246,.15); color: #93c5fd; }
.themed-modal.dark-modal .mwm-section-icon.green  { background: rgba(34,197,94,.15);  color: #86efac; }
.themed-modal.dark-modal .mwm-section-icon.purple { background: rgba(139,92,246,.15); color: #c4b5fd; }

/* ── Label ── */
.mwm-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #6b7280; margin-bottom: 6px; letter-spacing: .01em;
}
.mwm-label.dark { color: #9ca3af; }

/* ── Toggle row ── */
.mwm-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid #e5e7eb; background: #fafafa;
  transition: all .15s;
}
.mwm-toggle-row:hover { border-color: #d1d5db; }
.mwm-toggle-row.dark { background: #161616; border-color: #292929; }
.mwm-toggle-row.dark:hover { border-color: #3a3a3a; }

/* ── Info hint ── */
.mwm-info-hint {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px; margin-top: 10px;
  background: rgba(59,130,246,.05); border: 1px solid rgba(59,130,246,.10);
  font-size: 11.5px; color: #6b7280; line-height: 1.5;
}
.mwm-info-hint svg { flex-shrink: 0; margin-top: 1px; color: #3b82f6; }
.mwm-info-hint.dark {
  background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.15);
  color: #9ca3af;
}

/* ── Slide-in animation ── */
.mwm-slide-in { animation: mwmSlide .2s ease-out; }
@keyframes mwmSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
.mwm-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #f0f0f0;
}
.mwm-footer.dark {
  background: rgba(24,24,27,.85); border-top-color: #1f1f1f;
}

.mwm-btn-cancel {
  height: 36px; padding: 0 18px; border-radius: 9px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: transparent; color: #6b7280;
  border: 1px solid #e5e7eb; transition: all .15s;
}
.mwm-btn-cancel:hover { border-color: #d1d5db; color: #374151; background: #f9fafb; }
.mwm-btn-cancel.dark { border-color: #333; color: #9ca3af; }
.mwm-btn-cancel.dark:hover { border-color: #444; color: #d1d5db; background: #1f1f1f; }

.mwm-btn-submit {
  height: 36px; padding: 0 22px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
  display: flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.mwm-btn-submit:hover {
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
  transform: translateY(-1px);
}
.mwm-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.mwm-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: mwmSpin .6s linear infinite;
}
@keyframes mwmSpin { to { transform: rotate(360deg); } }

/* ── Ant form overrides scoped to .mwm-root ── */
.mwm-root .ant-input,
.mwm-root .ant-picker,
.mwm-root .ant-select-selector,
.mwm-root textarea.ant-input {
  border-radius: 10px !important;
}
.mwm-root .ant-form-item-label > label {
  font-size: 12px !important; font-weight: 600; color: #6b7280;
}
.mwm-root .ant-form-item { margin-bottom: 12px; }

/* ── Dark Ant overrides ── */
.themed-modal.dark-modal .mwm-root .ant-input,
.themed-modal.dark-modal .mwm-root textarea.ant-input {
  background: #1a1a1a; border-color: #292929; color: #e5e7eb;
}
.themed-modal.dark-modal .mwm-root .ant-input:hover,
.themed-modal.dark-modal .mwm-root textarea.ant-input:hover { border-color: #3a3a3a; }
.themed-modal.dark-modal .mwm-root .ant-input:focus,
.themed-modal.dark-modal .mwm-root textarea.ant-input:focus {
  border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.themed-modal.dark-modal .mwm-root .ant-input::placeholder,
.themed-modal.dark-modal .mwm-root textarea.ant-input::placeholder { color: #4b5563; }

.themed-modal.dark-modal .mwm-root .ant-picker {
  background: #1a1a1a; border-color: #292929;
}
.themed-modal.dark-modal .mwm-root .ant-picker:hover { border-color: #3a3a3a; }
.themed-modal.dark-modal .mwm-root .ant-picker-focused {
  border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.themed-modal.dark-modal .mwm-root .ant-picker input { color: #e5e7eb; }

.themed-modal.dark-modal .mwm-root .ant-select-selector {
  background: #1a1a1a !important; border-color: #292929 !important; color: #e5e7eb;
}
.themed-modal.dark-modal .mwm-root .ant-select:hover .ant-select-selector { border-color: #3a3a3a !important; }
.themed-modal.dark-modal .mwm-root .ant-select-focused .ant-select-selector {
  border-color: #6366f1 !important; box-shadow: 0 0 0 2px rgba(99,102,241,.15) !important;
}
.themed-modal.dark-modal .mwm-root .ant-select-selection-item { color: #e5e7eb; }
.themed-modal.dark-modal .mwm-root .ant-select-selection-placeholder { color: #4b5563; }
.themed-modal.dark-modal .mwm-root .ant-form-item-label > label { color: #9ca3af; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .mwm-header { padding: 14px 16px; }
  .mwm-body   { padding: 16px 16px 6px; }
  .mwm-footer { padding: 12px 16px; }
}

