*, ::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.17 | MIT License | https://tailwindcss.com
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

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

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

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

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

/*
Set the default cursor for buttons.
*/

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

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

:disabled {
  cursor: default;
}

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

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

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

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

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

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

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.right-0 {
  right: 0px;
}

.right-1 {
  right: 0.25rem;
}

.top-1 {
  top: 0.25rem;
}

.top-11 {
  top: 2.75rem;
}

.z-40 {
  z-index: 40;
}

.z-\[1100\] {
  z-index: 1100;
}

.z-\[1200\] {
  z-index: 1200;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

.mb-5 {
  margin-bottom: 1.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.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;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

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

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-10 {
  height: 2.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-64 {
  height: 16rem;
}

.h-8 {
  height: 2rem;
}

.h-9 {
  height: 2.25rem;
}

.max-h-32 {
  max-height: 8rem;
}

.max-h-\[60vh\] {
  max-height: 60vh;
}

.max-h-\[620px\] {
  max-height: 620px;
}

.min-h-\[120px\] {
  min-height: 120px;
}

.min-h-\[150px\] {
  min-height: 150px;
}

.min-h-\[180px\] {
  min-height: 180px;
}

.min-h-\[20px\] {
  min-height: 20px;
}

.min-h-\[220px\] {
  min-height: 220px;
}

.min-h-\[420px\] {
  min-height: 420px;
}

.min-h-\[74px\] {
  min-height: 74px;
}

.min-h-\[76px\] {
  min-height: 76px;
}

.min-h-\[88px\] {
  min-height: 88px;
}

.w-10 {
  width: 2.5rem;
}

.w-28 {
  width: 7rem;
}

.w-4 {
  width: 1rem;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-64 {
  width: 16rem;
}

.w-72 {
  width: 18rem;
}

.w-8 {
  width: 2rem;
}

.w-9 {
  width: 2.25rem;
}

.w-\[140px\] {
  width: 140px;
}

.w-\[220px\] {
  width: 220px;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-\[1120px\] {
  min-width: 1120px;
}

.min-w-\[1240px\] {
  min-width: 1240px;
}

.min-w-\[1260px\] {
  min-width: 1260px;
}

.min-w-\[1320px\] {
  min-width: 1320px;
}

.min-w-\[180px\] {
  min-width: 180px;
}

.min-w-\[240px\] {
  min-width: 240px;
}

.min-w-\[820px\] {
  min-width: 820px;
}

.min-w-\[860px\] {
  min-width: 860px;
}

.min-w-\[980px\] {
  min-width: 980px;
}

.min-w-full {
  min-width: 100%;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-\[170px\] {
  max-width: 170px;
}

.max-w-\[180px\] {
  max-width: 180px;
}

.max-w-\[220px\] {
  max-width: 220px;
}

.max-w-\[260px\] {
  max-width: 260px;
}

.max-w-md {
  max-width: 28rem;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.resize {
  resize: both;
}

.list-decimal {
  list-style-type: decimal;
}

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

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

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

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

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-8 {
  gap: 2rem;
}

.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-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));
}

.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-zinc-200 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(228 228 231 / var(--tw-divide-opacity, 1));
}

.overflow-auto {
  overflow: auto;
}

.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-words {
  overflow-wrap: break-word;
}

.rounded {
  border-radius: 0.25rem;
}

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

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

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

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}

.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}

.border-red-500\/40 {
  border-color: rgb(239 68 68 / 0.4);
}

.border-transparent {
  border-color: transparent;
}

.border-zinc-200 {
  --tw-border-opacity: 1;
  border-color: rgb(228 228 231 / var(--tw-border-opacity, 1));
}

.border-zinc-300 {
  --tw-border-opacity: 1;
  border-color: rgb(212 212 216 / var(--tw-border-opacity, 1));
}

.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}

.bg-amber-500\/15 {
  background-color: rgb(245 158 11 / 0.15);
}

.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}

.bg-black\/75 {
  background-color: rgb(0 0 0 / 0.75);
}

.bg-black\/90 {
  background-color: rgb(0 0 0 / 0.9);
}

.bg-emerald-500\/15 {
  background-color: rgb(16 185 129 / 0.15);
}

.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-red-500\/15 {
  background-color: rgb(239 68 68 / 0.15);
}

.bg-sky-500\/15 {
  background-color: rgb(14 165 233 / 0.15);
}

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

.bg-zinc-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 244 245 / var(--tw-bg-opacity, 1));
}

.bg-zinc-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(228 228 231 / var(--tw-bg-opacity, 1));
}

.bg-zinc-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity, 1));
}

.bg-zinc-500\/15 {
  background-color: rgb(113 113 122 / 0.15);
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-7 {
  padding: 1.75rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

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

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

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

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

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

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

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pl-5 {
  padding-left: 1.25rem;
}

.pr-12 {
  padding-right: 3rem;
}

.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.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;
}

.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}

.leading-6 {
  line-height: 1.5rem;
}

.leading-7 {
  line-height: 1.75rem;
}

.tracking-\[0\.14em\] {
  letter-spacing: 0.14em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}

.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}

.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.text-sky-300 {
  --tw-text-opacity: 1;
  color: rgb(125 211 252 / var(--tw-text-opacity, 1));
}

.text-sky-400 {
  --tw-text-opacity: 1;
  color: rgb(56 189 248 / var(--tw-text-opacity, 1));
}

.text-sky-500 {
  --tw-text-opacity: 1;
  color: rgb(14 165 233 / var(--tw-text-opacity, 1));
}

.text-zinc-400 {
  --tw-text-opacity: 1;
  color: rgb(161 161 170 / var(--tw-text-opacity, 1));
}

.text-zinc-500 {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity, 1));
}

.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}

.text-zinc-700 {
  --tw-text-opacity: 1;
  color: rgb(63 63 70 / var(--tw-text-opacity, 1));
}

.text-zinc-900 {
  --tw-text-opacity: 1;
  color: rgb(24 24 27 / var(--tw-text-opacity, 1));
}

.opacity-60 {
  opacity: 0.6;
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  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: 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: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-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);
}

.hover\:bg-red-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-zinc-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(244 244 245 / var(--tw-bg-opacity, 1));
}

.disabled\:opacity-40:disabled {
  opacity: 0.4;
}

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

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

  .sm\:grid-cols-\[1fr_auto\] {
    grid-template-columns: 1fr auto;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

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

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

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

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

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

  .md\:grid-cols-\[280px_1fr\] {
    grid-template-columns: 280px 1fr;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .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\:grid-cols-\[1\.2fr_\.8fr\] {
    grid-template-columns: 1.2fr .8fr;
  }

  .lg\:grid-cols-\[1fr_\.9fr\] {
    grid-template-columns: 1fr .9fr;
  }

  .lg\:grid-cols-\[1fr_1fr_1\.2fr\] {
    grid-template-columns: 1fr 1fr 1.2fr;
  }

  .lg\:grid-cols-\[1fr_220px_160px_auto\] {
    grid-template-columns: 1fr 220px 160px auto;
  }

  .lg\:grid-cols-\[1fr_420px\] {
    grid-template-columns: 1fr 420px;
  }

  .lg\:grid-cols-\[260px_1fr\] {
    grid-template-columns: 260px 1fr;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1\.08fr\)_420px\] {
    grid-template-columns: minmax(0,1.08fr) 420px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_220px_160px\] {
    grid-template-columns: minmax(0,1fr) 220px 160px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_240px_220px\] {
    grid-template-columns: minmax(0,1fr) 240px 220px;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_260px_auto\] {
    grid-template-columns: minmax(0,1fr) 260px auto;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_360px\] {
    grid-template-columns: minmax(0,1fr) 360px;
  }

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

  .lg\:items-end {
    align-items: flex-end;
  }

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

  .lg\:p-10 {
    padding: 2.5rem;
  }

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

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

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

  .xl\:grid-cols-\[1fr_1fr\] {
    grid-template-columns: 1fr 1fr;
  }

  .xl\:grid-cols-\[minmax\(340px\2c 420px\)_minmax\(0\2c 1fr\)\] {
    grid-template-columns: minmax(340px,420px) minmax(0,1fr);
  }

  .xl\:grid-cols-\[minmax\(360px\2c 440px\)_minmax\(0\2c 1fr\)\] {
    grid-template-columns: minmax(360px,440px) minmax(0,1fr);
  }
}

:root {
  --primary: #0f2855;
  --primary-rgb: 15,40,85;
  --primary-hover: #1e90ff;
  --app-bg: #fffaf5;
  --app-grid: rgba(236, 93, 55, .09);
  --app-panel: rgba(255, 255, 255, .86);
  --app-panel-solid: #ffffff;
  --app-panel-soft: #fffaf5;
  --app-border: #eaded6;
  --app-text: #18181b;
  --app-muted: #667085;
  --app-muted-2: #98a2b3;
}

html.dark {
  color-scheme: dark;
  --primary: #60a5fa;
  --primary-rgb: 96,165,250;
  --primary-hover: #93c5fd;
  --app-bg: #0b1120;
  --app-grid: rgba(148,163,184,.06);
  --app-panel: rgba(15,23,42,.86);
  --app-panel-solid: #111827;
  --app-panel-soft: #0f172a;
  --app-border: #243042;
  --app-text: #e5e7eb;
  --app-muted: #94a3b8;
  --app-muted-2: #64748b;
}


* { box-sizing: border-box; }

.hidden {
  display: none !important;
}

html,
body {
  min-height: 100%;
  background: var(--app-bg) !important;
  color: var(--app-text) !important;
  overflow-x: hidden;
}

body {
  margin: 0;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  max-width: 100vw;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  background:
    linear-gradient(var(--app-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--app-grid) 1px, transparent 1px),
    var(--app-bg);
  background-size: 40px 40px;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 74px minmax(0, 1fr);
}

body.admin-sidebar-lock {
  overflow: hidden;
}

.admin-sidebar-backdrop,
.mobile-sidebar-head,
.mobile-topbar-title > .icon-action {
  display: none;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: stretch;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--app-border);
  background: var(--app-panel);
  backdrop-filter: blur(12px);
  padding: 20px 14px 12px;
}

.sidebar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-collapse-button {
  flex: 0 0 auto;
}

body.sidebar-collapsed .app-sidebar {
  align-items: center;
  padding-inline: 10px;
}

body.sidebar-collapsed .sidebar-tools {
  width: 100%;
  justify-content: center;
}

body.sidebar-collapsed .traffic,
body.sidebar-collapsed .brand-block span:not(.brand-icon),
body.sidebar-collapsed .side-label,
body.sidebar-collapsed .sidebar-footer {
  display: none !important;
}

.traffic {
  display: flex;
  gap: 8px;
  padding-left: 6px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: block;
}

.traffic span:nth-child(1) { background:#ff5f57; }
.traffic span:nth-child(2) { background:#febc2e; }
.traffic span:nth-child(3) { background:#28c840; }

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  color: var(--app-text);
  text-decoration: none;
}

body.sidebar-collapsed .brand-block {
  justify-content: center;
  padding-inline: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #d45735, var(--primary));
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), .22);
}

.brand-block b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand-block small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 12px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.sidebar-collapsed .side-nav {
  width: 100%;
  align-items: center;
}

.side-label {
  margin: 18px 12px 6px;
  color: #a3a9b5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.sidebar-collapsed .side-link {
  width: 42px;
  justify-content: center;
  gap: 0;
  padding-inline: 0;
  font-size: 0;
}

body.sidebar-collapsed .side-link svg,
body.sidebar-collapsed .side-link i {
  width: 18px !important;
  height: 18px !important;
}

.side-link:hover,
.side-link-active,
.layout-link-active {
  color: #eb5a3d !important;
  background: #fff0ea !important;
}

.sidebar-footer {
  margin-top: auto;
  border: 1px solid #ffb3aa;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  color: var(--app-text);
  font-size: 14px;
  font-weight: 700;
}

.app-main {
  min-width: 0;
  overflow: clip;
  max-width: 100vw;
}

.app-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--app-border) !important;
  background: var(--app-panel-soft);
  backdrop-filter: blur(10px);
  padding: 16px 32px;
}

.app-topbar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #09090b;
}

.app-topbar p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-panel-solid);
  color: var(--app-text);
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-pill {
  border-color: #ffb3d1;
  background: #fff0f6;
  color: #ec4899;
}

.topbar-balance {
  border-left: 1px solid rgba(236,72,153,.28);
  padding-left: 8px;
  color: var(--app-text);
  font-weight: 800;
}

.range-button-active {
  border-color: #ffb3d1 !important;
  background: #fff0f6;
  color: #ec4899;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.badge-primary {
  background: rgba(var(--primary-rgb), .14);
  color: var(--primary);
}

.progress-primary {
  background: var(--primary);
}

.toast {
  position: fixed;
  right: 16px;
  top: 84px;
  z-index: 70;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.toast-ok { background: var(--primary); color: #fff; }
.toast-error { background: #7f1d1d; color: #fee2e2; }

.content-wrap {
  padding: 32px;
  min-width: 0;
  max-width: 100%;
}

.content-wrap > main {
  width: 100% !important;
  max-width: none !important;
  min-height: auto !important;
  padding: 0 !important;
}

.content-wrap > main > header {
  display: none !important;
}

.content-wrap section {
  color: var(--app-text);
}

.bg-white,
.bg-zinc-50,
.bg-zinc-100,
.dark\:bg-zinc-900,
.dark\:bg-zinc-950 {
  background-color: var(--app-panel) !important;
}

.content-wrap .rounded-lg {
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
}

.content-wrap .grid > .rounded-lg,
.content-wrap article.rounded-lg,
.content-wrap div.rounded-lg {
  background: var(--app-panel) !important;
}

.border-zinc-200,
.border-zinc-300,
.dark\:border-zinc-700,
.dark\:border-zinc-800,
.divide-zinc-200 > :not([hidden]) ~ :not([hidden]),
.dark\:divide-zinc-800 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--app-border) !important;
}

input,
select,
textarea,
code,
pre {
  background-color: var(--app-panel-solid) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

input,
select,
textarea {
  min-height: 40px;
  border-radius: 8px !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(var(--primary-rgb), .45) !important;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--app-muted-2) !important;
}

.text-zinc-950,
.dark\:text-zinc-100,
.dark\:text-white,
.text-white {
  color: var(--app-text) !important;
}

.text-zinc-600,
.text-zinc-500,
.text-zinc-400,
.text-zinc-300,
.dark\:text-zinc-200,
.dark\:text-zinc-300,
.dark\:text-zinc-400 {
  color: var(--app-muted) !important;
}

.text-primary {
  color: #eb5a3d !important;
}

h1,
h2,
h3,
b,
strong {
  color: var(--app-text);
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
}

.btn-primary:active {
  background: #0b66c3 !important;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18);
}

.tab-active,
.progress-primary {
  background: var(--primary) !important;
  color: #fff !important;
}

.tab-inactive {
  color: var(--app-muted) !important;
}

.badge-primary {
  background: rgba(var(--primary-rgb), .10) !important;
  color: var(--primary) !important;
}

.toast {
  position: fixed;
  right: 16px;
  top: 84px;
  z-index: 50;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

.toast-ok {
  background: var(--primary) !important;
  color: #fff !important;
}

.toast-error {
  background: #b42318 !important;
  color: #fff !important;
}

a,
button {
  border-color: var(--app-border) !important;
}

button,
a.rounded-md,
.content-wrap a {
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

a:hover,
button:hover {
  background-color: rgba(235,90,61,.07) !important;
  border-color: rgba(235,90,61,.34) !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.07);
  transform: translateY(-1px);
}

a:active,
button:active {
  background-color: rgba(235,90,61,.14) !important;
  box-shadow: inset 0 2px 5px rgba(15,23,42,.12);
  transform: translateY(0) scale(.98);
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .16);
}

button.btn-primary:hover {
  background-color: var(--primary-hover) !important;
}

.layout-link {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--app-muted);
}

.hero-panel {
  background:
    radial-gradient(circle at 18% 18%, rgba(30,144,255,.14), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,246,238,.92));
  border: 1px solid var(--app-border);
  box-shadow: 0 24px 80px rgba(15,23,42,.08);
}

.home-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(30,144,255,.18), transparent 30%),
    radial-gradient(circle at 6% 92%, rgba(235,90,61,.12), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,250,245,.9));
  box-shadow: 0 24px 80px rgba(15,23,42,.08);
}

.home-hero h1 {
  line-height: 1.04;
}

.home-stat {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(15,23,42,.045);
}

.home-stat span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-stat b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.home-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-side {
  display: grid;
  gap: 14px;
}

.home-brand-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 46px rgba(15,23,42,.09);
}

.home-brand-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.home-flow div,
.home-auth-note,
.home-mini-metric {
  border: 1px solid var(--app-border);
  background: rgba(255,255,255,.72);
}

.home-flow div {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 800;
}

.home-flow i,
.home-auth-note i {
  color: #eb5a3d;
  flex: 0 0 auto;
}

.home-auth-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15,23,42,.11);
}

.home-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #eb5a3d, #1e90ff, #0f766e);
}

.home-auth-note {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-showcase article {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,250,245,.82)) !important;
}

.home-mini-metric {
  border-radius: 8px;
  padding: 12px;
}

.home-mini-metric span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-mini-metric b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.metric-card {
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
  min-width: 0;
}

.metric-card b {
  overflow-wrap: anywhere;
}

.quota-page {
  display: grid;
  gap: 16px;
}

.quota-hero,
.quota-control-panel,
.quota-card {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel);
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.quota-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,248,242,.9)),
    radial-gradient(circle at 96% 10%, rgba(30,144,255,.16), transparent 30%);
}

.quota-kicker,
.quota-state,
.quota-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.quota-kicker {
  background: rgba(var(--primary-rgb), .10);
  color: var(--primary);
}

.quota-hero h2 {
  margin: 10px 0 4px;
  font-size: 24px;
  font-weight: 850;
}

.quota-hero p,
.quota-help,
.quota-card-head p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
}

.quota-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.quota-state {
  background: var(--app-panel-solid);
  color: var(--app-muted);
  border: 1px solid var(--app-border);
}

.quota-control-panel {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
}

.quota-field {
  display: grid;
  gap: 7px;
}

.quota-field-wide {
  grid-column: span 2;
}

.quota-field span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quota-field textarea {
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.45;
}

.quota-actions {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 150px;
}

.quota-actions button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.quota-help {
  grid-column: 1 / -1;
}

.quota-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quota-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.quota-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
}

.quota-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quota-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 850;
}

.quota-status-ok {
  background: rgba(5,150,105,.12);
  color: #047857;
}

.quota-status-danger,
.quota-status-error {
  background: rgba(217,45,32,.11);
  color: #d92d20;
}

.quota-meter-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.quota-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
}

.quota-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #1e90ff);
}

.quota-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quota-metrics div {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 10px;
}

.quota-metrics span {
  display: block;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quota-metrics b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.quota-card code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 8px 9px;
  font-size: 12px;
}

.quota-source-link {
  color: var(--app-text) !important;
}

.quota-card-low {
  border-color: rgba(217,45,32,.72) !important;
  box-shadow: 0 0 0 2px rgba(217,45,32,.12), 0 12px 32px rgba(15,23,42,.055) !important;
}

.quota-card-low .quota-meter i {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.quota-error-text {
  border: 1px solid rgba(217,45,32,.18);
  border-radius: 8px;
  background: rgba(217,45,32,.08);
  color: #b42318;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
}

.quota-delete-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(217,45,32,.28);
  border-radius: 8px;
  background: rgba(217,45,32,.08);
  color: #b42318;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.quota-fetch-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(37,99,235,.24);
  border-radius: 8px;
  background: rgba(37,99,235,.08);
  color: #1d4ed8;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.quota-fetch-button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.quota-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quota-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.quota-status-muted {
  background: rgba(102,112,133,.12);
  color: var(--app-muted);
}

.quota-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.quota-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quota-switch span {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d92d20;
  position: relative;
  transition: background-color .15s ease, opacity .15s ease;
}

.quota-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  transition: transform .15s ease;
}

.quota-switch input:checked + span {
  background: #eb5a3d;
}

.quota-switch input:checked + span::after {
  transform: translateX(16px);
}

.quota-switch input:disabled + span {
  cursor: not-allowed;
  opacity: .45;
}

.quota-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px;
  color: var(--app-muted);
  text-align: center;
}

.admin-quota-root .admin-feature-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,242,.92)),
    radial-gradient(circle at 96% 6%, rgba(30,144,255,.13), transparent 28%);
}

.admin-quota-root .quota-card {
  gap: 12px;
  padding: 14px;
}

.admin-quota-root {
  gap: 14px;
}

.admin-quota-root .admin-feature-hero,
.admin-quota-root .quota-control-panel,
.admin-quota-root .summary-card,
.admin-quota-root .quota-card,
.admin-quota-root .quota-empty {
  border-radius: 8px;
}

.admin-quota-root .admin-feature-hero {
  padding: 16px 18px;
}

.admin-quota-root .admin-feature-hero h2 {
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.25;
}

.admin-quota-root .admin-feature-hero p {
  margin-top: 8px;
}

.admin-quota-kicker {
  color: var(--primary) !important;
}

.admin-quota-controls {
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
}

.admin-quota-controls .quota-field-wide {
  grid-column: auto;
}

.admin-quota-controls textarea {
  min-height: 116px;
  max-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.admin-quota-actions {
  align-content: end;
  min-width: 0;
}

.admin-quota-actions button {
  width: 100%;
  height: 42px;
  min-height: 42px;
  white-space: nowrap;
}

.admin-quota-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quota-summary .summary-card {
  min-height: 78px;
  padding: 14px;
}

.admin-quota-summary .summary-card span,
.admin-quota-root .quota-field span,
.admin-quota-root .quota-metrics span {
  letter-spacing: 0;
}

.admin-quota-root .quota-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.admin-quota-root .quota-card-head {
  align-items: flex-start;
}

.admin-quota-root .quota-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.admin-quota-root .quota-head-actions {
  flex: 0 0 auto;
}

.admin-quota-root .quota-card-actions {
  justify-content: flex-end;
}

.admin-quota-root .quota-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-quota-root .quota-metrics div {
  padding: 9px 10px;
}

.admin-quota-history {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--app-panel) !important;
}

.admin-quota-history-head {
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .055), transparent);
}

.admin-quota-history-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.admin-quota-history-head p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.admin-quota-history-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.admin-quota-history-item {
  display: grid;
  grid-template-columns: 60px minmax(260px, 1fr) 132px 156px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 12px;
  box-shadow: 0 8px 22px rgba(15,23,42,.035);
}

.admin-quota-history-item:last-child {
  border-bottom: 1px solid var(--app-border);
}

.admin-quota-history-item b,
.admin-quota-history-item p {
  overflow-wrap: anywhere;
}

.admin-quota-history-item p {
  margin: 5px 0 0;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-quota-history-item time,
.admin-quota-history-quota span {
  color: var(--app-muted);
  font-size: 12px;
}

.admin-quota-history-main {
  min-width: 0;
}

.admin-quota-history-main b {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid rgba(var(--primary-rgb), .14);
  border-radius: 7px;
  background: rgba(var(--primary-rgb), .07);
  padding: 4px 7px;
  overflow: hidden;
  color: var(--app-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-quota-history-item time {
  justify-self: end;
  max-width: 156px;
  text-align: right;
  line-height: 1.35;
}

.admin-quota-history-quota {
  display: grid;
  justify-items: end;
  gap: 3px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 8px 10px;
}

.admin-quota-history-quota b {
  font-size: 15px;
  line-height: 1.1;
}

.quota-event-badge {
  display: inline-flex;
  min-width: 48px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
}

.quota-event-active {
  background: rgba(5,150,105,.12);
  color: #047857;
}

.quota-event-inactive {
  background: rgba(217,45,32,.11);
  color: #d92d20;
}

.quota-event-muted {
  background: rgba(102,112,133,.12);
  color: var(--app-muted);
}

.admin-quota-history-empty {
  margin: 0;
  padding: 18px;
  color: var(--app-muted);
  text-align: center;
  font-size: 13px;
}

.admin-quota-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--app-border);
  padding: 12px 18px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 800;
  background: var(--app-panel-soft);
}

.admin-quota-history-page-meta,
.admin-quota-history-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-quota-history-page-meta b {
  color: var(--app-text);
}

.admin-quota-history-page-size,
.admin-quota-history-page-current {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 0 10px;
  white-space: nowrap;
}

.admin-quota-history-page-current {
  min-width: 70px;
  color: var(--app-text);
  background: rgba(var(--primary-rgb), .08);
}

.admin-quota-history-pagination button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  color: var(--app-text);
}

.admin-quota-history-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .admin-quota-history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-quota-history-list {
    padding: 10px;
  }

  .admin-quota-history-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .admin-quota-history-quota,
  .admin-quota-history-item time {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  .admin-quota-history-quota {
    justify-items: start;
  }

  .admin-quota-history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-quota-history-page-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.quota-user-panel,
.quota-user-form,
.quota-user-card {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel);
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.quota-user-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.quota-user-panel h2 {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 850;
}

.quota-user-panel p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
}

.quota-user-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.quota-user-form input {
  width: 100%;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 11px;
}

.quota-user-form button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.quota-user-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.quota-user-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-quota-root {
  gap: 16px;
}

.user-quota-root .quota-user-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,242,.9)),
    radial-gradient(circle at 98% 8%, rgba(30,144,255,.12), transparent 28%);
}

.user-quota-root .quota-user-panel > div {
  min-width: 0;
}

.user-quota-root .quota-user-panel h2 {
  line-height: 1.2;
}

.user-quota-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.user-quota-root .quota-card {
  gap: 12px;
  padding: 14px;
}

.user-quota-root .quota-card-head {
  align-items: flex-start;
}

.user-quota-root .quota-card-head > div {
  min-width: 0;
}

.user-quota-root .quota-card h3 {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.25;
}

.user-quota-root .quota-status {
  flex: 0 0 auto;
}

.user-quota-root .quota-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-quota-root .quota-empty {
  min-height: 180px;
}

html.dark .user-quota-root .quota-user-panel {
  background: rgba(15,23,42,.78) !important;
  border-color: var(--app-border) !important;
}

.billing-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,247,240,.94)),
    radial-gradient(circle at 94% 8%, rgba(30,144,255,.14), transparent 28%);
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.billing-hero > .grid {
  align-items: center !important;
  gap: 16px !important;
}

.topup-box,
.key-usage-box,
.quota-edit,
.summary-card {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 12px;
}

.deposit-modal {
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.deposit-modal-panel {
  position: relative;
  z-index: 1001;
  max-width: min(1120px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.deposit-modal-panel h2 {
  font-size: 28px !important;
  line-height: 1.2 !important;
}

.deposit-modal-panel #depositModalBody {
  margin-top: 20px !important;
}

.deposit-modal-panel #depositModalBody > .grid {
  gap: 16px !important;
}

.deposit-modal-panel #depositModalBody > .grid > .rounded-lg {
  padding: 20px !important;
}

.deposit-modal-panel #depositModalBody > .grid b,
.deposit-modal-panel #depositModalBody > .grid button {
  font-size: 28px !important;
  line-height: 1.2 !important;
}

.deposit-modal-panel article.rounded-lg {
  padding: 24px !important;
}

.deposit-modal-panel article.rounded-lg > .grid {
  gap: 24px !important;
}

.deposit-modal-panel article img {
  width: 320px !important;
  height: 320px !important;
  padding: 12px !important;
}

.deposit-modal-panel article h3 {
  font-size: 24px !important;
  line-height: 1.25 !important;
}

.deposit-modal-panel article .mt-5 {
  margin-top: 24px !important;
  gap: 16px !important;
}

.deposit-modal-panel article .mt-5 > .rounded-lg {
  padding: 16px !important;
}

.deposit-modal-panel article .mt-5 b {
  margin-top: 8px !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

@media (min-width: 768px) {
  .deposit-modal-panel article.rounded-lg > .grid {
    grid-template-columns: 340px minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .deposit-modal-panel {
    padding: 20px !important;
  }

  .deposit-modal-panel article img {
    width: min(300px, 100%) !important;
    height: auto !important;
    aspect-ratio: 1;
  }
}

.user-package-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel);
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.user-package-card .package-type-badge ~ span {
  display: none;
}

.user-package-card .package-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-package-card .package-metrics div {
  flex: 1 1 104px;
  min-width: 0;
  padding: 6px 8px;
}

.user-package-card .package-metrics span {
  font-size: 10px;
  line-height: 1.2;
}

.user-package-card .package-metrics b {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.25;
}

@media (max-width: 520px) {
  .package-card-main {
    grid-template-columns: 1fr;
  }

  .package-price-box {
    text-align: left;
  }

  #packagesList {
    grid-template-columns: 1fr !important;
  }
}

.user-key-row {
  align-items: center;
}

.key-create-panel {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,248,242,.92));
  box-shadow: 0 14px 36px rgba(15,23,42,.055);
  padding: 16px;
}

.key-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.key-create-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.key-create-head p,
.key-create-hint {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.key-create-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: rgba(var(--primary-rgb), .10);
  color: var(--primary);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.key-create-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) minmax(140px, 180px) auto;
  gap: 10px;
  align-items: end;
}

.key-create-grid label,
.key-quota-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.key-create-grid span,
.key-quota-panel label {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.key-create-grid input,
.key-create-grid select,
.key-quota-panel input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 14px;
}

.key-create-grid select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-create-grid button,
.key-quota-panel button {
  height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.user-key-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.user-key-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel-soft);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,.045);
}

.user-key-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 12px;
  align-items: center;
}

.user-key-card h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 850;
}

.key-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 12px;
}

.status-pill-danger {
  background: rgba(217,45,32,.10) !important;
  color: #d92d20 !important;
}

.key-copy-wrap {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.key-copy-wrap code {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #fffaf5 !important;
  padding: 9px 10px;
  font-size: 12px;
}

.use-key-button {
  display: inline-flex;
  width: 72px;
  height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 7px 8px;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.use-key-button:hover,
.icon-action:hover {
  border-color: rgba(var(--primary-rgb), .35);
  color: var(--primary);
}

.use-key-panel {
  max-height: calc(100vh - 34px);
  overflow: hidden;
}

.use-key-body {
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.use-key-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid var(--app-border);
}

.use-key-os-tabs {
  margin-top: 18px;
}

.use-key-title {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}

.use-key-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 850;
}

.use-key-tab-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.use-key-hints {
  display: grid;
  gap: 8px;
  margin: 14px 0 12px;
}

.use-key-hint {
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.use-key-hint-vscode {
  border-color: rgba(14,165,233,.28);
  background: rgba(14,165,233,.10);
  color: #0369a1;
}

.use-key-hint-codex {
  border-color: rgba(124,58,237,.28);
  background: rgba(124,58,237,.10);
  color: #6d28d9;
}

.use-key-hint-login {
  border-color: rgba(5,150,105,.30);
  background: rgba(5,150,105,.10);
  color: #047857;
}

.use-key-code-card {
  overflow: hidden;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
}

.use-key-code-card + .use-key-code-card {
  margin-top: 16px;
}

.use-key-code-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: #1f2937;
  padding: 0 16px;
}

.use-key-code-head span {
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.use-key-code-head button {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.10);
  padding: 0 10px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.use-key-code-card pre {
  margin: 0;
  min-height: 84px;
  overflow: auto;
  padding: 18px 16px;
  background: #111827;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre;
}

.key-package-band {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr 1fr;
  gap: 10px;
}

.key-package-band > div,
.key-stat-tile {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 11px;
}

.key-package-band span,
.key-stat-tile span,
.key-stat-tile small,
.key-quota-panel small {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.key-package-band span,
.key-stat-tile span {
  text-transform: uppercase;
}

.key-package-band b,
.key-stat-tile b {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.key-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 10px;
  align-items: stretch;
}

.key-progress-panel,
.key-quota-panel {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 10px;
}

.key-progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.key-usage-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.key-usage-cell {
  display: grid;
  align-content: start;
  gap: 8px;
}

.key-stat-tile {
  padding: 9px 10px;
}

.key-stat-tile b {
  font-size: 14px;
}

.quota-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
}

.key-quota-panel small {
  margin-top: 7px;
  line-height: 1.4;
}

.api-key-copy {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.api-key-copy code {
  max-width: min(260px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
}

.icon-action {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
}

.icon-action-sm {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), .10);
  color: var(--primary);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.key-usage-box span,
.summary-card span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.key-usage-box b,
.summary-card b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.key-usage-box small {
  display: block;
  margin-top: 10px;
  color: var(--app-muted);
}

.usage-progress {
  height: 10px;
  overflow: hidden;
  margin-top: 0;
  border-radius: 999px;
  background: #e5ebf2;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}

.usage-progress i {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eb5a3d, #1e90ff);
}

.usage-progress-soft {
  height: 10px;
  margin-top: 0;
}

.usage-progress-soft i {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.package-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,250,245,.9)),
    radial-gradient(circle at 96% 8%, rgba(var(--primary-rgb), .16), transparent 30%);
}

.package-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.package-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: start;
}

.package-type-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: rgba(var(--primary-rgb), .10);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.package-price-box {
  display: grid;
  gap: 3px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 10px 12px;
  text-align: right;
}

.package-price-box b {
  font-size: 20px;
}

.package-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.package-metrics div {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 10px 12px;
}

.package-metrics span,
.package-edit-grid span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.package-metrics b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.package-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.package-edit-wide {
  grid-column: span 2;
}

.package-edit-grid label {
  display: grid;
  gap: 6px;
}

.package-edit-grid input,
.package-edit-grid select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.package-index-card {
  min-width: 0;
}

.package-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.package-flags span {
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: var(--app-panel-soft);
  color: var(--app-muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.package-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--app-border);
  padding-top: 14px;
  color: var(--app-muted);
  font-size: 12px;
}

.package-edit-modal {
  backdrop-filter: blur(4px);
}

.package-edit-panel {
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.package-edit-body {
  overflow-y: auto;
}

.admin-package-form input,
.admin-package-form textarea,
.admin-package-form select,
.package-edit-panel input,
.package-edit-panel textarea,
.package-edit-panel select {
  background: var(--app-panel-solid);
  border-color: var(--app-border);
  color: var(--app-text);
}

#packagesList {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 520px) {
  #packagesList {
    grid-template-columns: 1fr !important;
  }

  .package-card-main,
  .package-card-foot {
    grid-template-columns: 1fr;
  }

  .package-price-box {
    text-align: left;
  }

  .package-metrics {
    grid-template-columns: 1fr;
  }

  .package-actions,
  .package-edit-foot {
    justify-content: stretch;
  }

  .package-actions button,
  .package-edit-foot button {
    width: 100%;
    justify-content: center;
  }

  .package-edit-modal {
    align-items: stretch;
    padding: 12px;
  }

  .package-edit-panel {
    max-height: calc(100vh - 24px);
  }
}

.user-package-card .package-actions button {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.admin-feature-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,250,245,.9)),
    radial-gradient(circle at 94% 10%, rgba(var(--primary-rgb), .15), transparent 30%);
  box-shadow: 0 24px 80px rgba(15,23,42,.07);
}

.admin-data-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.admin-data-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.admin-key-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.admin-key-code code {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
}

.admin-data-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-data-metrics div,
.admin-balance-box {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 12px;
}

.admin-data-metrics span,
.admin-balance-box span,
.admin-edit-grid span,
.admin-balance-input span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-data-metrics b,
.admin-balance-box b {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.admin-purchases-panel {
  overflow: hidden;
}

.admin-purchases-panel select,
.admin-purchases-panel input {
  min-width: 0;
  max-width: 100%;
}

.admin-purchases-table {
  table-layout: fixed;
}

.admin-purchases-table th,
.admin-purchases-table td {
  vertical-align: middle;
}

.admin-purchases-table th:nth-child(1),
.admin-purchases-table td:nth-child(1) { width: 92px; }
.admin-purchases-table th:nth-child(2),
.admin-purchases-table td:nth-child(2) { width: 210px; }
.admin-purchases-table th:nth-child(3),
.admin-purchases-table td:nth-child(3) { width: 126px; }
.admin-purchases-table th:nth-child(4),
.admin-purchases-table td:nth-child(4) { width: 130px; }
.admin-purchases-table th:nth-child(5),
.admin-purchases-table td:nth-child(5) { width: 136px; }
.admin-purchases-table th:nth-child(6),
.admin-purchases-table td:nth-child(6) { width: 126px; }
.admin-purchases-table th:nth-child(7),
.admin-purchases-table td:nth-child(7) { width: 100px; }

.purchase-user-cell,
.purchase-package-cell {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-icon-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  color: var(--app-text);
}

.purchase-delete-button {
  border-color: rgba(217,45,32,.28);
  background: rgba(217,45,32,.08);
  color: #d92d20;
}

.admin-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-pagination button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 0 10px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 800;
}

.admin-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

#detailModalBody.purchase-detail-body {
  white-space: normal;
}

.purchase-detail-grid {
  display: grid;
  gap: 14px;
}

.purchase-detail-grid section {
  display: grid;
  gap: 8px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 12px;
}

.purchase-detail-grid h3 {
  margin: 0 0 2px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 850;
}

.purchase-detail-grid div {
  display: grid;
  grid-template-columns: minmax(120px, .6fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.purchase-detail-grid span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.purchase-detail-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--app-text);
  font-size: 13px;
}

.admin-users-panel {
  overflow: hidden;
}

.admin-users-panel input {
  min-width: 0;
  max-width: 100%;
}

.admin-users-table {
  table-layout: fixed;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: middle;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) { width: 190px; }
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) { width: 76px; }
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) { width: 170px; }
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) { width: 112px; }
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) { width: 104px; }
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) { width: 82px; }
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) { width: 160px; }
.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8) { width: 120px; }
.admin-users-table th:nth-child(9),
.admin-users-table td:nth-child(9) { width: 210px; }
.admin-users-table th:nth-child(10),
.admin-users-table td:nth-child(10) { width: 130px; }

.admin-user-name,
.admin-user-code {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-code {
  display: inline-block;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  background: var(--app-panel-soft);
  padding: 6px 8px;
  font-size: 12px;
}

.admin-user-balance-actions {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.admin-balance-box {
  min-width: 150px;
  text-align: right;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.admin-edit-grid label,
.admin-balance-input {
  display: grid;
  gap: 6px;
}

.admin-edit-grid input,
.admin-balance-input input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
}

.admin-card-actions,
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-user-actions {
  align-items: end;
}

.voucher-create-card {
  position: relative;
  overflow: visible;
}

.voucher-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.voucher-field > span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.voucher-field input,
.voucher-field select,
.voucher-package-button {
  width: 100%;
}

.voucher-error {
  min-height: 0;
  color: #d92d20;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.voucher-error:empty {
  display: none;
}

.voucher-invalid {
  border-color: rgba(217,45,32,.64) !important;
  box-shadow: 0 0 0 4px rgba(217,45,32,.10) !important;
}

.voucher-package-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  color: var(--app-text);
  padding: 0 11px;
  text-align: left;
}

.voucher-package-button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-package-picker {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-height: min(360px, 48vh);
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), .32);
  border-radius: 10px;
  background: var(--app-panel-solid);
  padding: 8px;
  box-shadow: 0 22px 48px rgba(15,23,42,.18);
}

.voucher-package-options {
  display: grid;
  gap: 4px;
  max-height: min(282px, 36vh);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.voucher-package-option {
  display: grid;
  min-height: 52px;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--app-text);
  padding: 8px 10px;
  text-align: left;
}

.voucher-package-option span,
.voucher-package-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-package-option span {
  font-size: 13px;
  font-weight: 800;
}

.voucher-package-option small {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 700;
}

.voucher-package-option:hover,
.voucher-package-option-active {
  border-color: rgba(var(--primary-rgb), .28) !important;
  background: rgba(var(--primary-rgb), .10) !important;
  color: var(--app-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

.voucher-package-empty,
.voucher-package-preview {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 9px 10px;
  color: var(--app-muted);
  font-size: 13px;
}

.voucher-package-preview {
  display: grid;
  gap: 2px;
}

.voucher-package-preview b,
.voucher-package-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-package-preview b {
  color: var(--app-text);
  font-size: 13px;
}

.voucher-package-preview span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 700;
}

.voucher-batch-card {
  min-width: 0;
  background: var(--app-panel) !important;
}

.voucher-batch-card h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

html.dark body {
  color-scheme: dark;
}

html.dark .app-sidebar {
  background: rgba(15,23,42,.92);
}

html.dark .app-topbar {
  background: rgba(11,17,32,.82);
}

html.dark .app-topbar h1 {
  color: var(--app-text);
}

html.dark .side-label,
html.dark .side-link {
  color: var(--app-muted);
}

html.dark .brand-icon {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 12px 26px rgba(59,130,246,.18);
}

html.dark .side-link:hover,
html.dark .side-link-active,
html.dark .layout-link-active {
  color: #bfdbfe !important;
  background: rgba(59,130,246,.12) !important;
}

html.dark .sidebar-footer {
  border-color: rgba(59,130,246,.25);
  background: rgba(15,23,42,.84);
  color: var(--app-text);
}

html.dark .pill-button {
  background: rgba(15,23,42,.9);
  color: var(--app-text);
  border-color: var(--app-border);
}

html.dark .primary-pill {
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(14,165,233,.10));
  color: #e0f2fe;
  border-color: rgba(96,165,250,.28);
}

html.dark .topbar-balance {
  border-left-color: rgba(255,255,255,.14);
  color: #f8fafc;
}

html.dark .icon-action {
  background: var(--app-panel-solid);
}

html.dark .key-create-panel,
html.dark .metric-card,
html.dark .user-key-card,
html.dark .key-create-head > span,
html.dark .key-create-grid input,
html.dark .key-create-grid select,
html.dark .key-create-hint,
html.dark .key-create-head p,
html.dark .key-create-head h2,
html.dark .user-key-card h3,
html.dark .key-card-meta span,
html.dark .key-copy-wrap code,
html.dark .key-progress-panel,
html.dark .key-quota-panel,
html.dark .key-stat-tile,
html.dark .key-package-band > div {
  background: rgba(15,23,42,.80) !important;
  border-color: var(--app-border) !important;
}

html.dark .key-create-panel,
html.dark .user-key-card {
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

html.dark .key-create-head h2,
html.dark .key-create-head p,
html.dark .key-create-hint,
html.dark .key-card-meta span,
html.dark .key-quota-panel small,
html.dark .key-progress-panel .key-stat-tile span,
html.dark .key-progress-panel .key-stat-tile small,
html.dark .key-stat-tile span,
html.dark .key-stat-tile small,
html.dark .key-package-band span,
html.dark .key-package-band b,
html.dark .user-key-card h3,
html.dark .key-create-grid label span {
  color: var(--app-text) !important;
}

html.dark .key-create-head > span,
html.dark .status-pill,
html.dark .package-type-badge {
  background: rgba(59,130,246,.14) !important;
  color: #bfdbfe !important;
}

html.dark .key-create-grid input,
html.dark .key-create-grid select,
html.dark .key-quota-panel input,
html.dark .key-copy-wrap code {
  background: rgba(3,7,18,.88) !important;
}

html.dark .use-key-panel {
  border-color: var(--app-border) !important;
  background: var(--app-panel-solid) !important;
}

html.dark .use-key-hint-vscode {
  border-color: rgba(56,189,248,.32);
  background: rgba(14,165,233,.14);
  color: #bae6fd;
}

html.dark .use-key-hint-codex {
  border-color: rgba(167,139,250,.34);
  background: rgba(124,58,237,.16);
  color: #ddd6fe;
}

html.dark .use-key-hint-login {
  border-color: rgba(52,211,153,.34);
  background: rgba(5,150,105,.16);
  color: #bbf7d0;
}

html.dark .use-key-head,
html.dark .use-key-foot,
html.dark .use-key-tabs {
  border-color: var(--app-border) !important;
}

html.dark .quota-source-link {
  color: #fff !important;
}

html.dark .quota-card-low {
  border-color: rgba(248,113,113,.78) !important;
  box-shadow: 0 0 0 2px rgba(248,113,113,.16), 0 18px 42px rgba(0,0,0,.28) !important;
}

html.dark .usage-progress {
  background: rgba(148,163,184,.16);
}

html.dark .key-create-grid input::placeholder,
html.dark .key-create-grid select,
html.dark .key-quota-panel input::placeholder {
  color: var(--app-muted-2) !important;
}

html.dark .key-create-grid button,
html.dark .key-quota-panel button,
html.dark .key-copy-wrap .icon-action {
  background: rgba(37,99,235,.18) !important;
  color: #e0f2fe !important;
}

html.dark .hero-panel,
html.dark .home-hero,
html.dark .billing-hero,
html.dark .package-hero,
html.dark .admin-feature-hero,
html.dark .home-stat,
html.dark .home-brand-visual,
html.dark .home-flow div,
html.dark .home-auth-note,
html.dark .home-mini-metric,
html.dark .metric-card,
html.dark .topup-box,
html.dark .key-usage-box,
html.dark .quota-edit,
html.dark .summary-card,
html.dark .user-package-card,
html.dark .package-card,
html.dark .package-price-box,
html.dark .package-metrics div,
html.dark .admin-data-card,
html.dark .admin-data-metrics div,
html.dark .admin-balance-box,
html.dark .user-key-card,
html.dark .key-package-band > div,
html.dark .key-stat-tile,
html.dark .key-progress-panel,
html.dark .key-quota-panel {
  background: rgba(15,23,42,.78) !important;
  border-color: var(--app-border) !important;
}

html.dark .content-wrap .overflow-hidden,
html.dark .content-wrap .shadow-sm,
html.dark .content-wrap .shadow-xl,
html.dark .content-wrap .shadow-2xl {
  box-shadow: 0 18px 42px rgba(0,0,0,.28) !important;
}

html.dark thead {
  background: rgba(15,23,42,.9);
}

html.dark th {
  color: #94a3b8 !important;
}

html.dark a:hover,
html.dark button:hover {
  background-color: rgba(59,130,246,.12) !important;
  border-color: rgba(96,165,250,.28) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

html.dark a:active,
html.dark button:active {
  background-color: rgba(59,130,246,.2) !important;
}
@media (max-width: 720px) {
  .admin-quota-root {
    gap: 12px !important;
  }

  .admin-quota-root .admin-feature-hero {
    padding: 14px !important;
  }

  .admin-quota-controls {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .admin-quota-controls textarea {
    min-height: 132px;
    font-size: 12px;
  }

  .admin-quota-actions button {
    width: 100%;
    height: 42px;
  }

  .admin-quota-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-quota-root .quota-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-quota-root .quota-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-quota-root .quota-head-actions,
  .admin-quota-root .quota-card-actions {
    justify-content: flex-start;
  }

  .admin-quota-root .quota-metrics {
    grid-template-columns: 1fr;
  }

  .admin-quota-history-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .admin-quota-history-quota,
  .admin-quota-history-item time {
    grid-column: 2;
    justify-items: start;
  }

  .user-quota-root {
    gap: 12px;
  }

  .user-quota-root .quota-user-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
  }

  .user-quota-root .quota-user-panel h2 {
    font-size: 20px;
  }

  .user-quota-card-grid {
    grid-template-columns: 1fr;
  }

  .user-quota-root .quota-card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-quota-root .quota-status {
    justify-self: start;
  }

  .user-quota-root .quota-metrics {
    grid-template-columns: 1fr;
  }

  .home-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card-main,
  .package-metrics,
  .usage-summary-grid,
  .quota-control-panel,
  .quota-summary-grid,
  .quota-metrics,
  .quota-user-form,
  .quota-user-summary,
  .key-create-grid,
  .key-package-band,
  .key-card-body,
  .quota-input-row,
  .key-usage-compact {
    grid-template-columns: 1fr;
  }

  .key-create-head,
  .user-key-card-head {
    grid-template-columns: 1fr;
  }

  .key-create-head {
    display: grid;
  }

  .key-create-head > span {
    justify-self: start;
  }

  .user-key-card-head .icon-action {
    justify-self: start;
  }

  .key-copy-wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .use-key-button {
    flex: 1 1 120px;
  }

  .use-key-head,
  .use-key-body,
  .use-key-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .use-key-tabs {
    gap: 10px;
  }

  .use-key-tab {
    flex: 1 1 150px;
  }

  .key-create-grid button,
  .key-quota-panel button {
    width: 100%;
  }

  .package-price-box {
    text-align: left;
  }

  .quota-field-wide {
    grid-column: auto;
  }

  .package-edit-wide {
    grid-column: span 1;
  }

  .package-actions {
    justify-content: stretch;
  }

  .package-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .admin-data-head,
  .admin-data-metrics,
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-key-code {
    justify-self: stretch;
  }

  .admin-key-code code {
    max-width: none;
    flex: 1;
  }

  .admin-balance-box {
    text-align: left;
  }

  .admin-card-actions,
  .admin-user-actions {
    justify-content: stretch;
  }

  .admin-card-actions button,
  .admin-user-actions button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .usage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.content-wrap .overflow-x-auto {
  max-width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.content-wrap table {
  table-layout: auto;
}

.content-wrap th,
.content-wrap td {
  vertical-align: top;
}

thead {
  background: var(--app-panel-soft);
}

th {
  color: #667085 !important;
  font-weight: 700 !important;
}

td {
  color: var(--app-text);
}

table:has(#recentUsage) th:nth-child(5),
table:has(#usageList) th:nth-child(5),
table:has(#accountRecentUsage) th:nth-child(4),
table:has(#usage) th:nth-child(4),
#recentUsage td:nth-child(5),
#usageList td:nth-child(5),
#accountRecentUsage td:nth-child(4),
#usage td:nth-child(4) {
  width: 220px !important;
  max-width: 220px !important;
}

table:has(#recentUsage) th:nth-child(6),
table:has(#usageList) th:nth-child(6),
table:has(#accountRecentUsage) th:nth-child(5),
table:has(#usage) th:nth-child(5),
#recentUsage td:nth-child(6),
#usageList td:nth-child(6),
#accountRecentUsage td:nth-child(5),
#usage td:nth-child(5) {
  width: 140px !important;
  max-width: 140px !important;
  white-space: nowrap;
}

code {
  color: #344054 !important;
}

.content-wrap [class*="uppercase"] {
  letter-spacing: .08em !important;
}

.content-wrap .overflow-hidden {
  background: rgba(255,255,255,.86) !important;
}

.content-wrap .shadow-sm,
.content-wrap .shadow-xl,
.content-wrap .shadow-2xl {
  box-shadow: 0 12px 32px rgba(15,23,42,.06) !important;
}

.content-wrap .text-red-500,
.content-wrap .text-red-400,
.content-wrap .text-red-300 {
  color: #d92d20 !important;
}

.content-wrap .text-sky-300,
.content-wrap .text-sky-400 {
  color: var(--primary-hover) !important;
}

.content-wrap .bg-sky-500\/15 {
  background: rgba(var(--primary-rgb), .10) !important;
}

.content-wrap .bg-red-500\/15 {
  background: rgba(217,45,32,.10) !important;
}

.content-wrap .text-amber-950,
.content-wrap .dark\:text-amber-100 {
  color: #7a2e0e !important;
}

.content-wrap .bg-amber-50,
.content-wrap .dark\:bg-amber-950 {
  background: #fff7ed !important;
}

@media (max-width: 980px) {
  body.sidebar-collapsed .app-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .app-sidebar {
    align-items: stretch;
    padding: 14px;
  }

  body.sidebar-collapsed .brand-block span:not(.brand-icon),
  body.sidebar-collapsed .side-label,
  body.sidebar-collapsed .sidebar-footer {
    display: initial !important;
  }

  body.sidebar-collapsed .side-nav {
    width: auto;
    align-items: stretch;
  }

  body.sidebar-collapsed .side-link {
    width: auto;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .sidebar-tools {
    display: none;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
  }

  .admin-sidebar-backdrop.hidden {
    display: none !important;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 90;
    width: min(86vw, 320px);
    height: 100dvh;
    max-height: 100dvh;
    gap: 14px;
    overflow-y: auto;
    border-right: 1px solid var(--app-border);
    border-bottom: 0;
    padding: 14px;
    transform: translateX(-104%);
    transition: transform .2s ease;
    box-shadow: 20px 0 60px rgba(15,23,42,.24);
  }

  .app-sidebar.admin-sidebar-open {
    transform: translateX(0);
  }

  .mobile-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-sidebar-brand {
    pointer-events: none;
  }

  .traffic,
  .app-sidebar > .brand-block:not(.mobile-sidebar-brand),
  .sidebar-footer {
    display: none;
  }

  .side-label {
    display: block;
    margin: 6px 8px 4px;
  }

  .brand-block {
    padding: 0 2px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .brand-block b {
    font-size: 16px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
    overflow: visible;
    padding: 4px 0;
  }

  .side-link {
    flex: none;
    min-height: 42px;
    border: 1px solid var(--app-border);
    background: var(--app-panel-solid);
    padding: 10px 12px;
    white-space: normal;
  }

  .app-topbar,
  .content-wrap {
    padding: 18px;
  }

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

  .mobile-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-topbar-title > .icon-action {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .app-topbar h1 {
    font-size: 21px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .app-topbar p {
    max-width: 62ch;
  }
}

@media (max-width: 760px) {
  .app-shell {
    background-size: 28px 28px;
  }

  .app-sidebar {
    padding: 12px;
  }

  .side-nav {
    margin: 0;
    padding: 4px 0;
  }

  .side-link {
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .app-topbar {
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
  }

  .app-topbar h1 {
    font-size: 20px;
    line-height: 1.18;
  }

  .app-topbar p {
    font-size: 13px;
    line-height: 1.45;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pill-button {
    min-height: 38px;
  }

  #userMenuWrap {
    min-width: 0;
    max-width: calc(100vw - 86px);
  }

  #userMenuButton {
    max-width: 100%;
  }

  #userMenuName,
  #userMenuBalance {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #userMenuName {
    max-width: 28vw;
  }

  #userMenuBalance {
    max-width: 24vw;
  }

  .content-wrap {
    padding: 14px;
    overflow-x: hidden;
  }

  .content-wrap > main,
  #adminPageRoot,
  #adminPageRoot > section,
  #adminPageRoot > form,
  .content-wrap .rounded-lg {
    max-width: 100%;
    min-width: 0;
  }

  #adminPageRoot {
    gap: 14px !important;
  }

  .admin-feature-hero,
  .package-hero,
  .metric-card,
  .admin-data-card,
  .package-card,
  .content-wrap section.rounded-lg,
  .content-wrap form.rounded-lg {
    border-radius: 9px !important;
  }

  .admin-feature-hero,
  .package-hero,
  .content-wrap section.rounded-lg,
  .content-wrap form.rounded-lg {
    padding: 14px !important;
  }

  .admin-feature-hero h2,
  .package-hero h2 {
    font-size: 20px !important;
    line-height: 1.2;
  }

  .admin-feature-hero button,
  .package-hero button {
    width: 100%;
    justify-content: center;
  }

  .metric-card {
    padding: 12px !important;
  }

  .metric-card b {
    font-size: 20px !important;
    line-height: 1.25;
  }

  #adminPageRoot > section.grid {
    grid-template-columns: 1fr !important;
  }

  .content-wrap .overflow-x-auto {
    margin-inline: -14px;
    padding-inline: 14px;
    border-radius: 0;
    max-width: calc(100vw - 0px);
  }

  .content-wrap table {
    font-size: 13px;
  }

  .content-wrap th,
  .content-wrap td {
    padding: 10px 12px !important;
  }

  .content-wrap input,
  .content-wrap select,
  .content-wrap textarea,
  .content-wrap button {
    max-width: 100%;
  }

  .content-wrap .min-w-\[260px\],
  .content-wrap .min-w-\[210px\],
  .content-wrap .min-w-\[240px\] {
    min-width: 0 !important;
  }

  .content-wrap .w-28 {
    width: 100% !important;
  }

  .content-wrap .flex.min-w-\[210px\],
  .content-wrap .grid.min-w-\[260px\] {
    width: min(78vw, 320px);
  }

  .content-wrap .grid.min-w-\[260px\] {
    grid-template-columns: 1fr !important;
  }

  #detailModal {
    align-items: flex-end;
    padding: 0;
  }

  #detailModal > div {
    max-width: none;
    max-height: 86vh;
    border-radius: 14px 14px 0 0 !important;
    padding: 16px !important;
  }

  #detailModalBody {
    max-height: 58vh !important;
    font-size: 12px !important;
  }
}

@media (max-width: 420px) {
  .brand-block b {
    font-size: 15px;
  }

  .brand-icon,
  .icon-action {
    width: 34px;
    height: 34px;
  }

  .side-link {
    font-size: 12px;
  }

  .side-link svg,
  .side-link i {
    width: 14px !important;
    height: 14px !important;
  }

  .content-wrap {
    padding: 12px;
  }

  .content-wrap .overflow-x-auto {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .admin-feature-hero,
  .package-hero,
  .content-wrap section.rounded-lg,
  .content-wrap form.rounded-lg {
    padding: 12px !important;
  }
}


.auth-modal-panel {
  background: var(--app-panel-solid) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46) !important;
}

html.dark .auth-modal-panel {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, .28) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72) !important;
}

.admin-chat-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 720px;
}

.admin-chat-list,
.admin-chat-panel {
  min-width: 0;
  background: var(--app-panel-solid);
}

.admin-chat-thread {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 8px;
  padding: 12px;
  color: var(--app-text);
}

.admin-chat-thread:hover,
.admin-chat-thread-active {
  background: rgba(var(--primary-rgb), .1);
}

.admin-chat-thread em {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-chat-nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

[data-admin-nav="chat"] {
  position: relative;
}

.admin-chat-nav-has-unread {
  border-color: rgba(239, 68, 68, .32) !important;
  background: rgba(239, 68, 68, .08) !important;
}

body.sidebar-collapsed .admin-chat-nav-badge {
  position: absolute;
  right: 10px;
  top: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

.admin-chat-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2855, #1e90ff);
  color: #fff;
  font-weight: 800;
}

.admin-chat-messages {
  height: 470px;
  overflow-y: auto;
  padding: 20px;
  background:
    linear-gradient(rgba(var(--primary-rgb), .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px),
    var(--app-panel-soft);
  background-size: 28px 28px;
}

.admin-chat-bubble-row,
.user-chat-row {
  display: flex;
  margin-bottom: 12px;
}

.admin-chat-bubble-row-mine,
.user-chat-row-mine {
  justify-content: flex-end;
}

.admin-chat-bubble,
.user-chat-bubble {
  max-width: min(640px, 78%);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.admin-chat-bubble-mine,
.user-chat-bubble-mine {
  border-color: rgba(var(--primary-rgb), .45);
  background: rgb(var(--primary-rgb));
  color: #fff;
}

.admin-chat-bubble p,
.user-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.5;
}

.admin-chat-bubble time,
.user-chat-bubble time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: .68;
}

.admin-chat-compose textarea,
.user-chat-compose textarea {
  color: var(--app-text);
}

.chat-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px;
  gap: 10px;
  align-items: stretch;
}

.chat-compose-input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  resize: none;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 15px 10px;
  color: var(--app-text);
  font-size: 13px;
  line-height: 20px;
  overflow-y: auto;
}

.chat-compose-icon,
.chat-compose-send {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.chat-compose-icon {
  border: 1px solid var(--app-border);
  background: var(--app-panel-solid);
  color: var(--app-text);
}

.chat-compose-icon:disabled,
.chat-compose-send:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.chat-image {
  display: block;
  max-width: 240px;
  max-height: 220px;
  border-radius: 8px;
  object-fit: contain;
}

.chat-image-button {
  display: block;
  max-width: 100%;
  margin: 0 0 8px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  padding: 0;
  line-height: 0;
  cursor: zoom-in;
}

.chat-image-button:hover,
.chat-image-button:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.chat-image-viewer-open {
  overflow: hidden;
}

.chat-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.chat-image-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0 !important;
  background: rgba(9, 9, 11, .82) !important;
  cursor: zoom-out;
}

.chat-image-viewer-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
}

.chat-image-viewer-frame img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.chat-image-viewer-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px;
  background: rgba(24,24,27,.92) !important;
  color: #fff;
}

.user-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 34px;
  z-index: 1000;
}

.user-chat-fab {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2855, #1e90ff);
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 40, 85, .28);
}

.user-chat-fab span {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--app-bg);
}

.user-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-panel-solid);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.user-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--app-border);
  background: linear-gradient(135deg, rgba(15, 40, 85, .08), rgba(30, 144, 255, .08));
}

.user-chat-panel header small {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 12px;
}

.user-chat-panel header button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.user-chat-messages {
  height: 330px;
  overflow-y: auto;
  padding: 14px;
  background: var(--app-panel-soft);
}

.user-chat-guest-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-panel-solid);
}

.user-chat-guest-form input {
  color: var(--app-text);
}

.user-chat-empty {
  padding: 42px 12px;
  text-align: center;
  color: var(--app-muted);
  font-size: 13px;
}

.user-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--app-border);
  align-items: stretch;
}

.user-chat-compose textarea {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  resize: none;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  padding: 15px 10px;
  font-size: 13px;
  line-height: 20px;
  overflow-y: auto;
}

.user-chat-compose button {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.user-chat-image-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 10px;
  color: var(--app-muted);
  font-size: 12px;
}

.user-chat-image-hint span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chat-image-hint button {
  flex: 0 0 auto;
  color: #ef4444;
  font-weight: 700;
}

html.dark .admin-chat-shell,
html.dark .admin-chat-list,
html.dark .admin-chat-panel,
html.dark .user-chat-panel,
html.dark .user-chat-guest-form,
html.dark .user-chat-compose textarea,
html.dark .chat-compose-input,
html.dark .chat-compose-icon {
  border-color: var(--app-border) !important;
  background: var(--app-panel-solid) !important;
}

html.dark .admin-chat-thread small,
html.dark .user-chat-empty {
  color: var(--app-muted) !important;
}

@media (max-width: 900px) {
  .admin-chat-shell {
    grid-template-columns: 1fr;
  }

  .admin-chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .admin-chat-messages {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .user-chat-widget {
    right: 14px;
    bottom: 26px;
  }

  .user-chat-fab {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .user-chat-fab svg,
  .user-chat-fab i {
    width: 18px !important;
    height: 18px !important;
  }

  .user-chat-fab span {
    right: -6px;
    top: -6px;
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .user-chat-panel {
    bottom: 64px;
  }
}

.keys-page {
  display: grid;
  gap: 14px;
}

.keys-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--app-border);
  padding: 16px;
}

.keys-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.keys-section-head p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 13px;
}

.keys-refresh-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-key-list-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-key-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-key-status-filter select {
  height: 36px;
  min-height: 36px;
  min-width: 132px;
  border: 1px solid var(--app-border);
  border-radius: 8px !important;
  background: var(--app-panel-solid) !important;
  padding: 0 10px;
  color: var(--app-text) !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.admin-keys-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--app-border);
  padding: 12px 16px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-keys-page-meta,
.admin-keys-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-keys-page-meta b {
  color: var(--app-text);
}

.admin-keys-page-size,
.admin-keys-page-current {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-soft);
  padding: 0 10px;
  white-space: nowrap;
}

.admin-keys-page-current {
  min-width: 70px;
  color: var(--app-text);
  background: rgba(var(--primary-rgb), .08);
}

.admin-keys-pagination button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-panel-solid);
  color: var(--app-text);
}

.admin-keys-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  .admin-key-list-tools,
  .admin-key-status-filter,
  .admin-key-status-filter select {
    width: 100%;
  }

  .admin-key-list-tools {
    justify-content: stretch;
  }

  .admin-key-status-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .admin-keys-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-keys-page-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.keys-page .key-create-panel {
  border-radius: 8px;
  padding: 14px;
}

.keys-page .key-create-grid {
  grid-template-columns: minmax(170px, .9fr) minmax(260px, 1.4fr) minmax(120px, 160px) 118px;
  gap: 9px;
}

.keys-page .key-create-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.keys-page .user-key-list {
  gap: 10px;
  padding: 12px;
}

.keys-page .user-key-card {
  border-radius: 8px;
  gap: 12px;
  background: var(--app-panel-solid);
  padding: 12px;
}

.keys-page .user-key-card-head {
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  align-items: center;
}

.keys-page .key-title-block {
  min-width: 0;
}

.keys-page .key-title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.keys-page .key-card-meta {
  gap: 6px;
}

.keys-page .key-card-meta span {
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-panel-solid);
  padding: 4px 7px;
  line-height: 1.2;
}

.keys-page .key-copy-wrap {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 112px 38px 38px;
  align-items: center;
  gap: 8px;
  justify-content: end;
}

.keys-page .key-copy-wrap code {
  width: 100%;
  max-width: none;
  height: 38px;
  display: flex;
  align-items: center;
}

.keys-page .use-key-button {
  width: 112px;
  height: 38px;
  flex-direction: row;
  gap: 7px;
  padding: 0 10px;
}

.keys-page .use-key-button svg,
.keys-page .use-key-button i {
  flex: 0 0 auto;
  width: 16px !important;
  height: 16px !important;
}

.keys-page .use-key-button span {
  font-size: 12px;
}

.keys-page .key-card-body {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 10px;
}

.keys-page .key-progress-panel,
.keys-page .key-quota-panel {
  border-radius: 8px;
}

.keys-page .key-usage-compact {
  gap: 10px;
}

.keys-page .key-stat-tile {
  background: transparent;
  padding: 8px 9px;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .keys-page .key-create-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .keys-page .key-create-grid button {
    width: 100%;
  }

  .keys-page .user-key-card-head,
  .keys-page .key-card-body {
    grid-template-columns: 1fr;
  }

  .keys-page .key-copy-wrap {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 112px 42px 42px;
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .keys-section-head {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .keys-refresh-button {
    justify-content: center;
    width: 100%;
  }

  .keys-page .key-create-panel,
  .keys-page .user-key-card {
    padding: 12px;
  }

  .keys-page .key-create-grid,
  .keys-page .user-key-card-head,
  .keys-page .key-card-body,
  .keys-page .key-usage-compact,
  .keys-page .quota-input-row {
    grid-template-columns: 1fr;
  }

  .keys-page .key-create-grid,
  .keys-page .key-create-grid label,
  .keys-page .key-create-grid select,
  .keys-page .key-create-grid option {
    max-width: 100%;
    min-width: 0;
  }

  .keys-page .key-create-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .keys-page .key-create-head > span {
    justify-self: start;
  }

  .keys-page .key-copy-wrap {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 112px 42px 42px;
    justify-content: stretch;
  }

  .keys-page .key-copy-wrap .icon-action,
  .keys-page .use-key-button {
    height: 42px;
  }
}

@media (max-width: 420px) {
  .keys-page .key-copy-wrap {
    grid-template-columns: 1fr 1fr 42px 42px;
  }

  .keys-page .key-copy-wrap code {
    grid-column: 1 / -1;
  }

  .keys-page .use-key-button {
    width: 100%;
  }
}

.floating-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1299;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(3px);
}

.floating-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1300;
  width: min(640px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  color: #0f172a;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.floating-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
}

.floating-notice-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.floating-notice-title b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.floating-notice-title i {
  flex: 0 0 auto;
  color: var(--primary);
  height: 20px;
  width: 20px;
}

.floating-notice-close {
  display: inline-flex;
  height: 40px;
  width: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  color: #52525b;
}

.floating-notice-close:hover {
  background: #f4f4f5;
  color: #18181b;
}

.floating-notice-message {
  max-height: min(46vh, 360px);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.75;
  color: #3f3f46;
}

.floating-notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e4e4e7;
  padding: 16px 24px 20px;
}

.floating-notice-primary {
  min-width: 118px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #0f2855 !important;
  background-color: #0f2855 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 40, 85, 0.28);
}

.floating-notice-primary:hover {
  background: #facc15 !important;
  background-color: #facc15 !important;
  color: #111827 !important;
}

.floating-notice-primary:focus-visible,
.floating-notice-primary:active {
  background: #f59e0b !important;
  background-color: #f59e0b !important;
  color: #111827 !important;
}

.dark .floating-notice-overlay {
  background: rgba(0, 0, 0, 0.48);
}

.dark .floating-notice {
  border-color: rgba(125, 211, 252, 0.26);
  background: rgba(24, 24, 27, 0.96);
  color: #fafafa;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.dark .floating-notice-close {
  border-color: #3f3f46;
  background: #27272a;
  color: #d4d4d8;
}

.dark .floating-notice-close:hover {
  background: #3f3f46;
  color: #fff;
}

.dark .floating-notice-message {
  color: #d4d4d8;
}

.dark .floating-notice-actions {
  border-top-color: #3f3f46;
}

@media (max-width: 640px) {
  .floating-notice {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }

  .floating-notice-head {
    padding: 18px 18px 12px;
  }

  .floating-notice-title {
    font-size: 16px;
  }

  .floating-notice-message {
    max-height: min(52vh, 380px);
    padding: 0 18px 18px;
    font-size: 15px;
  }

  .floating-notice-actions {
    padding: 14px 18px 18px;
  }

  .floating-notice-primary {
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .floating-notice {
    width: min(720px, calc(100vw - 80px));
  }
}

.voucher-page {
  display: grid;
  gap: 20px;
}

.voucher-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 240px;
}

.voucher-redeem-panel,
.voucher-stat-panel,
.voucher-history-panel {
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
}

.voucher-redeem-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.voucher-redeem-panel h2,
.voucher-history-head h3 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 750;
  color: #18181b;
}

.voucher-redeem-panel p,
.voucher-stat-panel p {
  margin-top: 6px;
  color: #71717a;
  font-size: 14px;
}

.voucher-redeem-form label {
  display: block;
  margin-bottom: 8px;
  color: #52525b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voucher-redeem-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.voucher-redeem-row input {
  height: 44px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  padding: 0 14px;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.voucher-redeem-row button,
.voucher-stat-panel button {
  height: 44px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 700;
}

.voucher-stat-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
}

.voucher-stat-panel span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.voucher-stat-panel strong {
  color: #0f172a;
  font-size: 34px;
  line-height: 1;
}

.voucher-stat-panel button {
  margin-top: 8px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #27272a;
}

.voucher-history-panel {
  padding: 18px;
}

.voucher-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e4e7;
}

.voucher-history-cards {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.voucher-history-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
}

.voucher-history-main,
.voucher-history-meta,
.voucher-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #18181b;
}

.voucher-reward-package,
.voucher-reward-money {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.voucher-reward-package {
  background: #dbeafe;
  color: #1d4ed8;
}

.voucher-reward-money {
  background: #dcfce7;
  color: #15803d;
}

.voucher-history-meta {
  color: #71717a;
  font-size: 13px;
}

.voucher-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
}

.voucher-pagination button:disabled {
  opacity: 0.45;
}

.voucher-pagination span {
  color: #71717a;
  font-size: 13px;
}

.voucher-empty {
  padding: 28px 0 12px;
  color: #71717a;
  text-align: center;
  font-size: 14px;
}

.voucher-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 14px;
}

.voucher-loading svg,
.voucher-spin .voucher-refresh-icon {
  animation: voucher-spin 0.9s linear infinite;
}

.voucher-refresh-icon,
.voucher-loader-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voucher-loader-icon {
  width: 20px;
  height: 20px;
}

@keyframes voucher-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .voucher-shell {
    grid-template-columns: 1fr;
  }

  .voucher-redeem-row,
  .voucher-history-main,
  .voucher-history-meta,
  .voucher-history-head {
    align-items: stretch;
    flex-direction: column;
  }

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

.voucher-page {
  width: 100%;
  max-width: none;
}

.voucher-shell {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.voucher-redeem-panel,
.voucher-stat-panel,
.voucher-history-panel {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(127, 29, 29, 0.06);
}

.voucher-redeem-panel {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  padding: 26px;
}

.voucher-redeem-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #fb7185, #f97316);
}

.voucher-redeem-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.voucher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff1f2;
  color: #e11d48;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.12);
}

.voucher-icon-muted {
  background: #f8fafc;
  color: #64748b;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.14);
}

.voucher-redeem-panel h2,
.voucher-history-head h3 {
  font-size: 24px;
  letter-spacing: 0;
}

.voucher-redeem-panel p {
  max-width: 640px;
  line-height: 1.65;
}

.voucher-redeem-form {
  max-width: 720px;
  margin-left: 56px;
}

.voucher-redeem-row {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.voucher-redeem-row input {
  height: 48px;
  border-color: #fecdd3;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.voucher-redeem-row input:focus {
  border-color: #fb7185;
  outline: 3px solid rgba(251, 113, 133, 0.18);
}

.voucher-redeem-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
}

.voucher-stat-panel {
  min-height: 0;
  align-content: start;
  padding: 20px;
}

.voucher-stat-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.voucher-stat-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
}

.voucher-stat-head button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.voucher-stat-panel strong {
  margin-top: 2px;
  color: #be123c;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.voucher-stat-panel p {
  margin-top: 4px;
  font-size: 14px;
}

.voucher-history-panel {
  padding: 20px;
}

.voucher-history-card {
  border-color: rgba(228, 228, 231, 0.9);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.voucher-history-card:hover {
  border-color: rgba(251, 113, 133, 0.35);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.06);
  transform: translateY(-1px);
}

.voucher-code {
  border-radius: 6px;
  background: #f8fafc;
  padding: 6px 8px;
  color: #0f172a;
}

@media (max-width: 860px) {
  .voucher-shell {
    grid-template-columns: 1fr;
  }

  .voucher-redeem-form {
    margin-left: 0;
  }

  .voucher-redeem-copy {
    flex-direction: column;
  }
}

.dark .voucher-redeem-panel,
.dark .voucher-stat-panel,
.dark .voucher-history-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.dark .voucher-redeem-panel::before {
  background: linear-gradient(180deg, #38bdf8, #6366f1);
}

.dark .section-kicker,
.dark .voucher-stat-panel span,
.dark .voucher-redeem-form label {
  color: #94a3b8;
}

.dark .voucher-redeem-panel h2,
.dark .voucher-history-head h3,
.dark .voucher-code {
  color: #f8fafc;
}

.dark .voucher-redeem-panel p,
.dark .voucher-stat-panel p,
.dark .voucher-history-meta,
.dark .voucher-pagination span,
.dark .voucher-empty,
.dark .voucher-loading {
  color: #cbd5e1;
}

.dark .voucher-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.dark .voucher-icon-muted {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.dark .voucher-redeem-row input {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.66);
  color: #f8fafc;
}

.dark .voucher-redeem-row input::placeholder {
  color: #64748b;
}

.dark .voucher-redeem-row input:focus {
  border-color: #38bdf8;
  outline-color: rgba(56, 189, 248, 0.18);
}

.dark .voucher-stat-head button,
.dark .voucher-pagination button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
}

.dark .voucher-stat-panel strong {
  color: #7dd3fc;
}

.dark .voucher-history-head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.dark .voucher-history-card,
.dark .voucher-loading {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
}

.dark .voucher-history-card:hover {
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dark .voucher-code {
  background: rgba(15, 23, 42, 0.82);
}

.dark .voucher-reward-package {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.dark .voucher-reward-money {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}
