/* ============================================================
   App CSS — importa tokens + utilitários base
   Compilado via: npx tailwindcss -i resources/css/app.css -o public/assets/css/app.css
   ============================================================ */

/* ============================================================
   Design Tokens — Paleta "Aurora"
   Checkout Platform v1.0
   ============================================================ */

:root {
  /* ── Cores ── */
  --c-bg:           #FAFAF9;
  --c-bg-elev:      #FFFFFF;
  --c-surface:      #F4F4F3;
  --c-border:       #E7E5E4;
  --c-border-strong:#D6D3D1;
  --c-text:         #0C0A09;
  --c-text-muted:   #57534E;
  --c-text-subtle:  #A8A29E;
  --c-primary:      #6366F1;
  --c-primary-600:  #4F46E5;
  --c-primary-700:  #4338CA;
  --c-primary-50:   #EEF2FF;
  --c-accent:       #10B981;
  --c-accent-600:   #059669;
  --c-warn:         #F59E0B;
  --c-warn-50:      #FFFBEB;
  --c-danger:       #EF4444;
  --c-danger-50:    #FEF2F2;
  /* ── Gradientes ── */
  --grad-hero:    linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-cta:     linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  /* ── Tipografia ── */
  --font-sans:    "Inter", "Geist", system-ui, -apple-system, sans-serif;
  --font-display: "Geist", "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  /* ── Escala tipográfica (step 1.25) ── */
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  /* ── Espaçamento (4px grid) ── */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;
  /* ── Border radius ── */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;
  /* ── Sombras (nível Linear/Vercel — sutis) ── */
  --sh-xs:   0 1px 2px rgba(0,0,0,.04);
  --sh-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:   0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --sh-lg:   0 12px 32px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --sh-xl:   0 24px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --sh-glow: 0 0 0 4px rgba(99,102,241,.12);
  --sh-glow-accent: 0 0 0 4px rgba(16,185,129,.12);
  /* ── Motion ── */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --dur-fast:    120ms;
  --dur-base:    200ms;
  --dur-slow:    400ms;
  --dur-xslow:   600ms;
  /* ── Z-index ── */
  --z-base:    0;
  --z-raised:  10;
  --z-dropdown:20;
  --z-sticky:  30;
  --z-modal:   50;
  --z-toast:   60;
  --z-tooltip: 70;
}

/* ── Dark mode ── */

[data-theme="dark"] {
  --c-bg:           #0A0A0B;
  --c-bg-elev:      #131315;
  --c-surface:      #1C1C1F;
  --c-border:       #27272A;
  --c-border-strong:#3F3F46;
  --c-text:         #FAFAFA;
  --c-text-muted:   #A1A1AA;
  --c-text-subtle:  #71717A;
  --c-primary-50:   rgba(99,102,241,.12);
  --c-danger-50:    rgba(239,68,68,.12);
  --c-warn-50:      rgba(245,158,11,.12);
  --sh-xs:  0 1px 2px rgba(0,0,0,.2);
  --sh-sm:  0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --sh-md:  0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --sh-lg:  0 12px 32px rgba(0,0,0,.4), 0 4px 8px rgba(0,0,0,.3);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

code,
kbd,
samp,
pre {
  font-family: JetBrains Mono, ui-monospace, 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;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
}

::-moz-selection {
  background: rgba(99, 102, 241, .15);
  color: var(--c-text);
}

::selection {
  background: rgba(99, 102, 241, .15);
  color: var(--c-text);
}

:focus-visible {
  outline: none;
  box-shadow: var(--sh-glow);
  border-radius: var(--r-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--c-primary-600);
}

img, video {
  display: block;
  max-width: 100%;
}

input, textarea, select, button {
  font-family: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-6) 0;
}

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--c-surface);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--c-primary);
}

.container {
  width:           100%;
}

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

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

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

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

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

/* ── Buttons ─── */

.btn {
  display:           inline-flex;
  align-items:           center;
  justify-content:           center;
  gap:           0.5rem;
  border-radius:           var(--r-md);
  font-weight:           600;
  transition-property:           all;
  transition-timing-function:           cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration:           150ms;
  font-size: var(--fs-sm);
  padding: 10px 20px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  border-color: var(--c-primary-600);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--c-bg-elev);
  color: var(--c-text);
  border-color: var(--c-border-strong);
}

.btn-secondary:hover {
  background: var(--c-surface);
  border-color: var(--c-text-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

.btn-danger {
  background: var(--c-danger);
  color: #fff;
  border-color: var(--c-danger);
}

.btn-danger:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(239,68,68,.25);
}

.btn-lg {
  font-size: var(--fs-base);
  padding: 14px 28px;
  border-radius: var(--r-lg);
}

.btn-sm {
  font-size: var(--fs-xs);
  padding: 6px 14px;
  border-radius: var(--r-sm);
}

/* ── Inputs ─── */

.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--c-bg-elev);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--c-text);
  transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
  outline: none;
}

.input::-moz-placeholder {
  color: var(--c-text-subtle);
}

.input::placeholder {
  color: var(--c-text-subtle);
}

.input:focus {
  border-color: var(--c-primary);
  box-shadow: var(--sh-glow);
}

.input:invalid:not(:-moz-placeholder-shown) {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

.input:invalid:not(:placeholder-shown) {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

.input-error {
  border-color: var(--c-danger);
}

.input-error:focus {
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

/* ── Label ─── */

.label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 6px;
}

.label-hint {
  font-size: var(--fs-xs);
  color: var(--c-text-subtle);
  font-weight: 400;
  margin-left: 4px;
}

/* ── Field group ─── */

.field {
  margin-bottom: var(--sp-5);
}

.field-error {
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--c-danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Card ─── */

.card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

/* ── Badge ─── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(16,185,129,.1);
  color: var(--c-accent-600);
  border-color: rgba(16,185,129,.2);
}

.badge-warn {
  background: var(--c-warn-50);
  color: #B45309;
  border-color: rgba(245,158,11,.2);
}

.badge-danger {
  background: var(--c-danger-50);
  color: var(--c-danger);
  border-color: rgba(239,68,68,.2);
}

.badge-neutral {
  background: var(--c-surface);
  color: var(--c-text-muted);
  border-color: var(--c-border);
}

/* ── Dot indicator ─── */

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Table ─── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-bg-elev);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table thead {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background var(--dur-fast) var(--ease-out);
}

.table tbody tr:hover {
  background: var(--c-surface);
}

/* ── Skeleton ─── */

@keyframes shimmer {
  0%   {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Modal backdrop ─── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.modal {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-8);
  position: relative;
}

/* ── Toast ─── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  pointer-events: all;
  min-width: 280px;
  max-width: 380px;
  /* Glassmorphism discreto */
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
}

/* ── Section / Container ─── */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── KPI Card ─── */

.kpi-card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-xs);
}

.kpi-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--c-text);
}

.kpi-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kpi-delta {
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kpi-delta-up   {
  color: var(--c-accent);
}

.kpi-delta-down {
  color: var(--c-danger);
}

/* ── Sidebar ─── */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--c-bg-elev);
  border-right: 1px solid var(--c-border);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

.sidebar-link.active {
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-weight: 600;
}

[data-theme="dark"] .sidebar-link.active {
  background: rgba(99,102,241,.15);
}

/* ── Topbar ─── */

.topbar {
  min-height: 64px;
  background: var(--c-bg-elev);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  overflow: visible;
}

/* User dropdown trigger + panel — never clipped by the topbar */
.topbar [x-data] { overflow: visible; }
.topbar [x-show] { z-index: 100; }

.sr-only {
  position:           absolute;
  width:           1px;
  height:           1px;
  padding:           0;
  margin:           -1px;
  overflow:           hidden;
  clip:           rect(0, 0, 0, 0);
  white-space:           nowrap;
  border-width:           0;
}

.collapse {
  visibility:           collapse;
}

.static {
  position:           static;
}

.fixed {
  position:           fixed;
}

.absolute {
  position:           absolute;
}

.relative {
  position:           relative;
}

.block {
  display:           block;
}

.flex {
  display:           flex;
}

.table {
  display:           table;
}

.grid {
  display:           grid;
}

.hidden {
  display:           none;
}

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

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

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

@keyframes fadeIn {
  from {
    opacity:           0;
  }

  to {
    opacity:           1;
  }
}

.animate-fade-in {
  animation:           fadeIn 200ms cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeInUp {
  from {
    opacity:           0;
    transform:           translateY(16px);
  }

  to {
    opacity:           1;
    transform:           translateY(0);
  }
}

.animate-fade-in-up {
  animation:           fadeInUp 400ms cubic-bezier(.22,1,.36,1) both;
}

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

.border {
  border-width:           1px;
}

.uppercase {
  text-transform:           uppercase;
}

.antialiased {
  -webkit-font-smoothing:           antialiased;
  -moz-osx-font-smoothing:           grayscale;
}

.opacity-0 {
  opacity:           0;
}

.opacity-100 {
  opacity:           1;
}

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

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

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

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

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

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

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

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

/* Fade-in-up (IntersectionObserver trigger) */

.animate-fade-in-up {
  animation: fadeInUp var(--dur-slow) var(--ease-out) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to   {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--dur-base) var(--ease-out) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to   {
    opacity: 1;
  }
}

/* Pulse sutil (timer, alertas) */

@keyframes pulseSuttle {
  0%, 100% {
    opacity: 1;
  }

  50%       {
    opacity: .7;
  }
}

/* Checkmark animado (thank-you) */

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* Circle do checkmark */

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

/* Glassmorphism */

.glass {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

[data-theme="dark"] .glass {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
}

/* Text gradients */

/* Truncate */

/* Scrollbar sutil */

.scroll-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.scroll-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-thin::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: 2px;
}

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

/* ── Component layer ─────────────────────────────────────── */

/* ── Utility layer ───────────────────────────────────────── */
