:root {
  /* Resgat.me Design System Colors (from Mobile App) */
  --primary: #00e881;
  --primary-hover: #00f298;
  --primary-dark: #04c47e;
  --primary-glow: rgba(0, 232, 129, 0.25);
  --primary-bg: rgba(0, 232, 129, 0.08);

  /* Merchant dashboard surfaces and controls */
  --surface-page: #121212;
  --surface-sidebar: #181818;
  --surface-header: #181818;
  --surface-card: #222222;
  --surface-card-hover: #2a2a2a;
  --surface-metric: #191919;
  --surface-metric-bottom: #131313;
  --surface-input: #1a1a1a;
  --surface-input-disabled: #222222;
  --surface-secondary-button: #222222;
  --surface-secondary-button-hover: #1c211e;
  --border-secondary-button: #393939;
  --border-card: #2a2a2a;
  --border-metric: #292929;
  --border-table-header: #292929;
  --border-table-row: #222222;
  --text-table-header: #999999;
  --border-control: rgb(0 0 0 / 25%);
  --text-control: #ffffff;
  --text-control-muted: #8e8e93;
  --text-control-placeholder: #8e8e93;

  /* Shared spacing and typography scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --font-size-page-title: 26px;
  --font-size-section-title: 17px;
  --font-size-control: 14px;
  --control-height: 52px;

  /* Backgrounds */
  --bg-app: #121212;
  --bg-sidebar: #181818;
  --bg-surface: #222222;
  --bg-surface-elevated: #2a2a2a;
  --bg-surface-box: #303030;
  --bg-input: #1a1a1a;

  /* Borders */
  --border-subtle: #2a2a2a;
  --border-inner-element: rgb(0 0 0 / 25%);
  --border-default: rgb(0 0 0 / 50%);
  --border-focus: #00e881;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #8e8e93;
  --text-dark: #121212;

  /* Status Colors */
  --color-success: #00e881;
  --color-warning: #ffb703;
  --color-danger: #e63946;
  --color-info: #3a86ff;

  /* Fonts */
  --font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 4px 16px rgba(0, 232, 129, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: none;
}

.app-main-content {
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

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

.resgat-inline-spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 14px;
}

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

  50% {
    opacity: 0.5;
  }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility UI components styling */
.resgat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: var(--font-size-control);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-height: 48px;
  border: 1px solid var(--border-secondary-button);
  background-color: var(--surface-secondary-button);
  color: var(--text-primary);
  box-sizing: border-box;
  flex: 0 0 auto;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  user-select: none;
  line-height: 1.2;
}

/* Size variants keep the same visual language while fitting dense toolbars and tables. */
.resgat-btn-compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  gap: 6px;
  border-radius: 10px;
}

.resgat-btn-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
}

.resgat-btn .animate-spin,
.resgat-btn .resgat-inline-spinner {
  flex: 0 0 14px;
}

.resgat-btn .resgat-loader {
  min-height: 0;
  padding: 0 !important;
  gap: 0;
  flex: 0 0 auto;
}

.resgat-btn-primary {
  background-color: var(--primary);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.resgat-btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 232, 129, 0.35);
}

.resgat-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

.resgat-btn-secondary:hover:not(:disabled) {
  background-color: var(--surface-secondary-button-hover);
  border-color: rgba(0, 232, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.resgat-btn:hover:not(:disabled):not(.resgat-btn-primary):not(.resgat-btn-secondary):not(
    .resgat-btn-danger
  ) {
  background-color: var(--surface-secondary-button-hover);
  border-color: rgba(0, 232, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.resgat-btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.resgat-btn-danger {
  background-color: rgba(230, 57, 70, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.resgat-btn-danger:hover:not(:disabled) {
  background-color: var(--color-danger);
  color: #fff;
}

.resgat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.resgat-btn:focus-visible,
.resgat-input:focus-visible {
  outline: 3px solid rgba(0, 232, 129, 0.26);
  outline-offset: 2px;
}

.resgat-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.resgat-input {
  width: 100%;
  min-height: var(--control-height);
  background-color: var(--surface-input);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  color: var(--text-control);
  padding: 13px 14px;
  font-size: var(--font-size-control);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  outline: none;
}

.resgat-input:focus,
.resgat-input:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.resgat-input::placeholder {
  color: var(--text-control-placeholder);
}

.resgat-input:disabled {
  color: var(--text-muted);
  background-color: var(--surface-input-disabled);
  cursor: not-allowed;
}

.resgat-input[type='checkbox'],
.resgat-input[type='radio'] {
  width: auto;
  min-height: auto;
  accent-color: var(--primary-dark);
}
.resgat-input[type='color'] {
  min-height: 42px;
  padding: 4px;
}
.resgat-input[type='date'] {
  color-scheme: dark;
}
.resgat-input select,
select.resgat-input {
  color-scheme: dark;
}

select.resgat-input:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px 16px;
}

.merchant-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.merchant-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.merchant-page-header h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: var(--font-size-page-title);
  font-weight: 800;
}

.merchant-page-header p {
  margin: 0;
  color: #8e8e93;
  font-size: 13px;
}

.client-toolbar,
.client-segments,
.client-search,
.company-summary,
.company-summary-brand,
.client-contact,
.client-detail-contact,
.client-detail-row,
.rescue-list-controls {
  display: flex;
  align-items: center;
}

.client-toolbar {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.client-segments {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgb(0 0 0 / 50%);
  border-radius: 12px;
  background: #181818;
}

.client-segment {
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  color: #aaa;
  font-weight: 700;
  white-space: nowrap;
}

.client-segment.active {
  background: rgba(0, 232, 129, 0.14);
  color: #00e881;
}

.client-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
}

.client-search svg {
  position: absolute;
  left: 13px;
  color: #777;
}

.client-search input {
  padding-left: 40px;
}

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

.client-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  border: 1px solid rgb(0 0 0 / 50%);
  border-radius: 14px;
  background: #181818;
  color: inherit;
  text-align: left;
}

.client-card:hover,
.client-card:focus-visible {
  border-color: rgba(0, 232, 129, 0.55);
  background: #1c211e;
}

.client-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #262626;
  color: #00e881;
  font-weight: 800;
}

.client-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.client-main strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-main small,
.client-metric small,
.client-detail-row small {
  color: #888;
  font-size: 11px;
}

.client-contact {
  flex-wrap: wrap;
  gap: 8px;
  color: #aaa;
  font-size: 11px;
}

.client-contact span,
.client-card-count,
.client-detail-contact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.client-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #00e881;
}

.client-metric strong {
  font-size: 16px;
}

.client-card-count {
  grid-column: 2 / 4;
  color: #999;
  font-size: 11px;
}

.client-empty {
  padding: 45px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #888;
  text-align: center;
}

.client-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-detail-contact {
  flex-wrap: wrap;
  gap: 12px;
  color: #aaa;
  font-size: 13px;
}

.client-detail h4 {
  margin: 6px 0 0;
  color: #fff;
}

.client-detail-row {
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #292929;
  border-radius: 10px;
  background: #181818;
}

.client-detail-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.client-detail-row strong {
  color: #fff;
}

.client-detail-row b {
  color: #00e881;
  white-space: nowrap;
}

.rescue-list-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.rescue-list-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 12px;
}

.rescue-list-controls select {
  min-width: 160px;
  width: auto;
  padding: 8px 10px;
}

.rescue-result-count {
  margin-left: auto;
  color: #888;
  font-size: 12px;
}

.app-header-leading,
.app-header-actions {
  display: flex;
  align-items: center;
}

.app-header-leading {
  min-width: 0;
  gap: 12px;
}
.app-header-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.hamburger-btn {
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: transparent;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.app-header-account {
  display: flex;
  min-width: 0;
  max-width: min(440px, 34vw);
  align-items: center;
  gap: 11px;
  padding: 6px 8px 6px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.app-header-account:hover,
.app-header-account:focus-visible {
  border-color: transparent;
  background: transparent;
}

.app-header-account:hover .app-header-account-title {
  color: var(--primary);
}

.app-header-account:focus-visible,
.hamburger-btn:focus-visible,
.app-header-logout:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.app-header-account-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
}

.app-header-account-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-header-account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.app-header-account-title {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header-account-user {
  overflow: hidden;
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header-account-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.app-header-role {
  flex: 0 0 auto;
  color: #8e8e93;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.app-header-logout {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  color: #8e8e93;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.app-header-logout:hover {
  color: #e63946;
  background: #2a2a2a;
}

.company-summary {
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  flex-wrap: wrap;
}

.company-summary-brand {
  gap: 16px;
  min-width: 0;
}

.company-summary-brand img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  object-fit: cover;
}

.company-summary-brand div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #999;
  font-size: 13px;
}

.company-summary-brand strong {
  color: #fff;
  font-size: 16px;
}

.modal-content-scroll {
  max-height: calc(90vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Sidebar & Mobile Drawer Styles */
.app-sidebar {
  width: 260px;
  background-color: var(--surface-sidebar);
  border-right: 1px solid rgb(0 0 0 / 50%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 100;
  flex-shrink: 0;
  transition:
    width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.sidebar-preferences {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
  box-shadow: 0px -3px 12px rgba(0, 0, 0, 0.35);

  /* border-top: 1px solid rgb(0 0 0 / 50%); */
  background: var(--surface-sidebar);
}

.sidebar-preference-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #8e8e93;
  font-size: 11px;
}

.sidebar-preference-label .resgat-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 12px;
  color-scheme: dark;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border-color: var(--border-inner-element);
}

.app-sidebar.app-sidebar-collapsed .sidebar-preferences {
  gap: 7px;
  padding: 10px 6px;
}

.app-sidebar.app-sidebar-collapsed .sidebar-preference-label > span {
  display: none;
}

.app-sidebar.app-sidebar-collapsed .sidebar-preference-label .resgat-input {
  min-height: 34px;
  padding: 4px 2px;
  font-size: 10px;
}

.app-sidebar.app-sidebar-collapsed .sidebar-language-select {
  min-width: 0;
  padding: 4px 1px;
  font-size: 9px;
}

.app-sidebar.app-sidebar-collapsed {
  width: 80px;
}

.app-sidebar.app-sidebar-collapsed span {
  display: none;
}

.app-sidebar.app-sidebar-collapsed a {
  justify-content: center;
  padding: 12px;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 280px !important;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .app-sidebar.app-sidebar-collapsed {
    width: 280px !important;
  }

  .app-sidebar.app-sidebar-collapsed span {
    display: inline;
  }

  .app-sidebar.app-sidebar-open {
    transform: translateX(0) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 95;
    animation: fadeIn 0.2s ease;
  }

  .app-main-content {
    padding: 16px 18px !important;
  }

  .resgat-card {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .app-main-content {
    padding: 14px 12px !important;
  }

  .merchant-page-header {
    align-items: stretch;
  }

  .merchant-page-header h1 {
    font-size: 21px;
  }

  .client-toolbar {
    align-items: stretch;
  }

  .client-segments {
    width: 100%;
  }

  .client-segment {
    flex: 1;
    padding-inline: 7px;
    font-size: 11px;
  }

  .client-search {
    max-width: none;
    flex-basis: 100%;
  }

  .client-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
  }

  .client-avatar {
    width: 36px;
    height: 36px;
  }

  .client-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .rescue-list-controls {
    align-items: stretch;
  }

  .rescue-list-controls label {
    flex: 1 1 145px;
    align-items: stretch;
    flex-direction: column;
  }

  .rescue-list-controls select {
    width: 100%;
    min-width: 0;
  }

  .rescue-result-count {
    flex-basis: 100%;
    margin-left: 0;
  }

  .company-summary {
    align-items: stretch;
    padding: 16px;
  }

  .company-summary-brand img {
    width: 54px;
    height: 54px;
  }

  .company-summary > button {
    width: 100%;
  }

  .modal-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .modal-content-scroll form [style*='grid-template-columns'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .resgat-card {
    padding: 16px !important;
  }

  .app-header {
    height: auto !important;
    min-height: 58px;
    padding: 8px 10px !important;
    gap: 8px;
  }

  .app-header-leading {
    gap: 7px;
    flex: 1;
    overflow: hidden;
  }

  .hamburger-btn {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .app-header-account {
    max-width: 40vw;
    gap: 8px;
    padding: 4px 5px 4px 0;
    border-radius: 0;
  }

  .app-header-account-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .app-header-account-title {
    font-size: 12px;
  }
  .app-header-account-user {
    display: none;
  }
  .app-header-role {
    display: none;
  }

  .app-header-actions {
    gap: 4px;
  }

  .app-header-logout {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }

  .app-header .resgat-btn {
    min-height: 38px;
    padding: 7px 9px !important;
    font-size: 11px !important;
  }

  .app-header .resgat-btn span {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.merchant-partner-form .form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 600;
}

.merchant-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.merchant-page-heading h1 {
  margin: 0 0 6px;
  color: #f7fbf8;
  font-size: var(--font-size-page-title);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.merchant-page-heading p {
  margin: 0;
  color: #8e8e93;
  font-size: 14px;
}

.merchant-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.merchant-page-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.merchant-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
}

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

.merchant-metric-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--border-metric);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-metric), var(--surface-metric-bottom));
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.merchant-metric-card:hover {
  border-color: color-mix(in srgb, var(--metric-accent, #00e881) 44%, var(--border-metric));
  transform: translateY(-1px);
}
.merchant-metric-label {
  display: flex;
  min-height: 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #aaa;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.merchant-metric-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--metric-accent, #00e881);
}
.merchant-metric-value {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.35px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.merchant-metric-hint {
  color: #777;
  font-size: 11px;
  line-height: 1.4;
}
.merchant-metric-card.is-emphasis {
  border-color: color-mix(in srgb, var(--metric-accent, #00e881) 48%, var(--border-metric));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--metric-accent, #00e881) 11%, var(--surface-metric)),
    var(--surface-metric-bottom)
  );
}
.merchant-metric-card.is-emphasis .merchant-metric-value {
  color: var(--metric-accent, #00e881);
}
.merchant-metric-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
}
.merchant-metric-grid-compact .merchant-metric-card {
  min-height: 88px;
  padding: 13px 14px;
}
.merchant-metric-grid-compact .merchant-metric-value {
  font-size: 21px;
}

/* Legacy metric card wrapper now uses the shared dashboard metric system. */
.merchant-metric-card {
  min-width: 0;
}

.merchant-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.merchant-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.merchant-table th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-table-header);
  color: var(--text-table-header);
  font-size: 12px;
  font-weight: 600;
}

.merchant-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-table-row);
  color: #ddd;
  font-size: 13px;
}

.merchant-campaign-progress {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #292929;
}

.merchant-campaign-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.merchant-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.merchant-section-heading p {
  margin: 5px 0 0;
  color: #8e8e93;
  font-size: 13px;
}

.rescue-embedded {
  padding-top: 4px;
  gap: 16px;
}

.cards-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.rescue-tools-details {
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: 16px;
  background: #141414;
}

.rescue-tools-details > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.rescue-tools-details > summary::-webkit-details-marker {
  display: none;
}
.rescue-tools-details > summary::after {
  content: '+';
  color: #00e881;
  font-size: 22px;
  font-weight: 400;
}
.rescue-tools-details[open] > summary::after {
  content: '−';
}
.rescue-tools-details > summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rescue-tools-details > summary strong {
  color: #fff;
  font-size: 14px;
}
.rescue-tools-details > summary small {
  color: #888;
  font-size: 12px;
}
.rescue-tools-count {
  color: #aaa;
  font-size: 12px;
  white-space: nowrap;
}
.cards-programs-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid #292929;
  border-radius: 18px;
  background: linear-gradient(160deg, #171717, #121212 70%);
}
.automatic-cron-panel,
.automatic-runs-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.automatic-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.automatic-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: 17px;
}
.automatic-section-heading h2 svg {
  color: #00e881;
}
.automatic-section-heading p {
  margin: 5px 0 0;
  color: #888;
  font-size: 12px;
}
.automatic-cron-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.automatic-cron-form label {
  display: grid;
  gap: 7px;
  color: #aaa;
  font-size: 12px;
}
.automatic-cron-form .resgat-btn {
  min-height: 42px;
}
.automatic-next-run {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #999;
  font-size: 12px;
}
.automatic-next-run svg {
  color: #a78bfa;
}
.automatic-next-run strong {
  color: #ddd;
}
.automatic-table-wrap {
  padding: 0;
}
.automatic-table-wrap .merchant-table {
  min-width: 700px;
}
.automatic-run-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ddd;
  white-space: nowrap;
}
.automatic-run-status.is-success {
  color: #00e881;
}
.automatic-run-status.is-completed_with_errors,
.automatic-run-status.is-warning {
  color: #fbbf24;
}
.automatic-run-status.is-failed {
  color: #ff7777;
}
.automatic-run-message {
  display: block;
  max-width: 240px;
  margin-top: 4px;
  color: #888;
  white-space: normal;
}
.automatic-empty {
  margin: 0;
  color: #888;
  font-size: 13px;
}
.automatic-merchant-history {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
}
.automatic-merchant-history > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.automatic-merchant-history strong {
  color: #fff;
  font-size: 14px;
}
.automatic-merchant-history span {
  color: #888;
  font-size: 12px;
}
.automatic-campaign-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #00e881 !important;
  white-space: nowrap;
}
.cards-programs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cards-programs-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
}
.cards-programs-heading p {
  margin: 5px 0 0;
  color: #929292;
  font-size: 13px;
}
.cards-programs-heading > span {
  padding: 7px 11px;
  border: 1px solid #303030;
  border-radius: 999px;
  color: #bbb;
  font-size: 12px;
  white-space: nowrap;
}
.cards-management-content {
  gap: 16px;
}
.cards-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}
.loyalty-program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(155deg, #202020, #151515 72%);
  border-radius: 16px;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.loyalty-program-card:hover {
  transform: translateY(-2px);
  border-color: #00e88166 !important;
  box-shadow: 0 12px 34px #0006;
}
.loyalty-program-card .resgat-btn {
  min-height: 38px;
}
.rescue-tools-details {
  margin-top: 2px;
}
.rescue-tools-details[open] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
}
.rescue-tools-details[open] > :not(summary) {
  margin-right: 16px !important;
  margin-left: 16px !important;
}

@media (max-width: 700px) {
  .cards-overview-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .cards-overview-metrics .is-emphasis {
    grid-column: 1 / -1;
  }
  .rescue-tools-details > summary {
    padding: 14px;
  }
  .cards-programs-section {
    padding: 17px 14px;
  }
  .cards-programs-heading {
    align-items: flex-start;
  }
  .cards-programs-heading h2 {
    font-size: 17px;
  }
  .cards-programs-heading p {
    font-size: 12px;
  }
  .automatic-cron-form {
    grid-template-columns: 1fr 1fr;
  }
  .automatic-cron-form button {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .automatic-cron-panel,
  .automatic-runs-panel {
    padding: 15px;
  }
  .automatic-merchant-history {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }
}
.brand-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-app);
}

.brand-splash--initial {
  animation: brand-splash-out 420ms ease 2.58s forwards;
}

.brand-splash--leaving {
  animation: brand-splash-out 260ms ease forwards;
}

.brand-splash__logo {
  z-index: 1;
  width: min(460px, 80vw);
  height: min(180px, 31vw);
  object-fit: cover;
  object-position: center 50%;
}

.brand-splash__sticker {
  position: absolute;
  object-fit: contain;
  opacity: 0;
  animation: brand-sticker-enter 760ms cubic-bezier(0.18, 0.88, 0.28, 1.25) forwards;
}

@keyframes brand-sticker-enter {
  from {
    opacity: 0;
    transform: translate(50vw, 50vh) scale(0.16) rotate(calc(var(--sticker-rotation) + 48deg));
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(var(--sticker-rotation));
  }
}

@keyframes brand-splash-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-splash__sticker {
    animation-duration: 1ms;
  }
  .brand-splash {
    animation-duration: 1ms;
    animation-delay: 3s;
  }
}
.social-auth-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-auth-button {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #f8faf9;
  color: #3c4043;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.social-auth-button svg {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
}

.social-auth-button span {
  padding-left: 28px;
}

.social-auth-button--apple {
  border-color: #000;
  background: #000;
  color: #fff;
}

.social-auth-button:hover:not(:disabled) {
  border-color: #b7bdc2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.social-auth-button--apple:hover:not(:disabled) {
  border-color: #303030;
  background: #1a1a1a;
}

.social-auth-button:focus-visible {
  outline: 3px solid rgba(0, 180, 95, 0.35);
  outline-offset: 2px;
}

.social-auth-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 1000px) {
  .social-auth-buttons {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 470px) {
  .social-auth-buttons {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-auth-button {
    transition: none;
  }
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pxiEyp8kv8JHgFVrJJnecmNE.woff2') format('woff2');
  unicode-range:
    U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pxiEyp8kv8JHgFVrJJfecg.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.login-screen,
.register-screen {
  background:
    radial-gradient(ellipse at 14% 8%, rgba(0, 232, 129, 0.12), transparent 36%), transparent;

  --auth-background: #121212;
  --auth-surface: #1b1b1b;
  --auth-card: #222;
  --auth-border: #303030;
  --auth-text: #f5f7f6;
  --auth-muted: #a4aaa7;
  --auth-green: #00e881;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(24px, 4vw, 52px);
  overflow-x: hidden;
  font-family: Poppins, var(--font-family), sans-serif;
  background:
    radial-gradient(ellipse at 82% 30%, rgba(4, 196, 126, 0.13), transparent 38%),
    radial-gradient(ellipse at 8% 82%, rgba(0, 232, 129, 0.06), transparent 34%),
    var(--auth-background);
  color: var(--auth-text);
}

.login-layout,
.register-layout {
  display: grid;
  width: min(1280px, 100%);
  min-height: calc(100dvh - clamp(48px, 8vw, 104px));
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  margin: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-brand-panel {
  position: relative;
  /* isolation: isolate; */
  display: flex;
  min-height: min(640px, calc(100dvh - 100px));
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  color: #fff;
  /* background:
    radial-gradient(ellipse at 14% 8%, rgba(0, 232, 129, 0.12), transparent 36%), transparent; */
}

.login-brand-panel::before,
.login-brand-panel::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(0, 232, 129, 0.12);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.login-brand-panel::before {
  top: 8%;
  right: -300px;
  width: 590px;
  height: 590px;
}

.login-brand-panel::after {
  top: 18%;
  right: -220px;
  width: 430px;
  height: 430px;
}

.login-brand-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-right: clamp(72px, 8vw, 110px);
}

.login-brand-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.login-brand-logo {
  display: block;
  width: clamp(220px, 24vw, 300px);
  height: clamp(92px, 9vw, 120px);
  object-fit: cover;
  object-position: center 50%;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c5d1ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.login-brand-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-green);
  box-shadow: 0 0 12px rgba(0, 232, 129, 0.75);
}

.login-brand-message {
  max-width: 470px;
  margin: 48px 0 34px;
}

.login-brand-kicker,
.login-form-eyebrow {
  color: var(--auth-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-brand-message h1 {
  max-width: 450px;
  margin: 18px 0 16px;
  color: #f7fbf8;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.login-brand-message p {
  max-width: 420px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.7;
}

.login-brand-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #91a097;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.login-brand-footer-copy {
  display: grid;
  gap: 2px;
}

.login-brand-footer-copy strong {
  color: #dfe9e2;
  font-size: 12px;
  font-weight: 800;
}

.login-brand-glow {
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(0, 232, 129, 0.1);
  filter: blur(85px);
  pointer-events: none;
}

.login-brand-glow--one {
  top: 32%;
  right: 3%;
}

.login-brand-glow--two {
  bottom: -20%;
  left: 14%;
  opacity: 0.55;
}

.login-brand-sticker {
  position: absolute;
  z-index: 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  user-select: none;
}

.login-brand-sticker--card {
  top: 32%;
  right: 3%;
  width: clamp(95px, 10vw, 130px);
  transform: rotate(9deg);
}

.login-brand-sticker--scratch {
  right: 17%;
  bottom: 13%;
  width: clamp(70px, 8vw, 100px);
  transform: rotate(-10deg);
}

.login-brand-sticker--stamp {
  right: 0;
  bottom: 7%;
  width: clamp(55px, 6.5vw, 82px);
  transform: rotate(11deg);
}

.login-brand-sticker--coin {
  top: 23%;
  right: 25%;
  width: clamp(50px, 5vw, 66px);
  transform: rotate(-12deg);
}

.login-brand-sticker--gift {
  top: 7%;
  left: 4%;
  width: clamp(48px, 5vw, 68px);
  transform: rotate(9deg);
}

.login-brand-sticker--sparkle {
  top: 12%;
  right: 9%;
  width: clamp(24px, 2.5vw, 34px);
  transform: rotate(-9deg);
}

.login-form-panel {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  align-items: center;
  justify-self: end;
  justify-content: center;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 44px) 84px;
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 232, 129, 0.08), transparent 36%),
    var(--auth-surface);
  color: var(--auth-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.login-form-wrap {
  width: min(100%, 420px);
  container-type: inline-size;
}

.login-mobile-brand {
  display: none;
}

.login-form-heading {
  margin-bottom: 30px;
}

.login-form-eyebrow {
  color: var(--auth-green);
}

.login-form-heading h2 {
  margin: 12px 0 8px;
  color: var(--auth-text);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.login-form-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-error {
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(230, 57, 70, 0.38);
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.12);
  color: #ff9a9f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.login-error a {
  display: block;
  margin-top: 6px;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  min-width: 0;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: #dedede;
  font-size: 13px;
  font-weight: 700;
}

.login-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-password-label a,
.login-register-prompt a {
  color: var(--auth-green);
  font-weight: 700;
  text-decoration: none;
}

.login-password-label a {
  font-size: 12px;
}

.login-password-label a:hover,
.login-register-prompt a:hover,
.login-link-button:hover:not(:disabled) {
  color: #17f49a;
  text-decoration: underline;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: #8e8e93;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form-panel .resgat-input {
  box-sizing: border-box;
  min-height: 52px;
  padding: 13px 15px 13px 45px;
  border: 1px solid #393939;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  color-scheme: dark;
}

.login-form-panel .resgat-input::placeholder {
  color: #8e8e93;
}

.login-form-panel .resgat-input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(0, 232, 129, 0.16);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 25px 0 18px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 700;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: var(--auth-border);
  content: '';
}

.login-link-button {
  align-self: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--auth-green);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.login-link-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-register-prompt {
  margin: 28px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.login-register-prompt a {
  font-weight: 800;
}

.login-language-selector,
.register-language-selector {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 4;
}

.login-language-selector > div,
.register-language-selector > div,
.login-language-selector .language-selector-pills,
.register-language-selector .language-selector-pills {
  max-width: calc(100vw - 36px);
  gap: 3px !important;
  padding: 3px !important;
  border-color: var(--auth-border) !important;
  background: var(--auth-card) !important;
}

.login-language-selector .language-selector-pill,
.register-language-selector .language-selector-pill {
  min-width: 0;
  padding: 6px 9px !important;
  color: #c9d0cc !important;
  font-size: 11px !important;
}

.login-language-selector .language-selector-pill.is-selected,
.register-language-selector .language-selector-pill.is-selected {
  background-color: rgba(0, 232, 129, 0.14) !important;
  color: var(--auth-green) !important;
}

@media (max-width: 980px) {
  .login-layout,
  .register-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 30px;
  }

  .login-brand-panel {
    padding: 26px;
  }

  .login-brand-message h1 {
    font-size: clamp(38px, 5vw, 52px);
  }

  .login-form-panel {
    padding-inline: 32px;
  }
}

@media (max-width: 1150px) and (min-width: 901px) {
  .login-brand-content {
    padding-right: 68px;
  }

  .login-brand-sticker--card {
    top: 32%;
    right: 0;
    width: 70px;
  }

  .login-brand-sticker--scratch {
    right: 10%;
    bottom: 15%;
    width: 56px;
  }

  .login-brand-sticker--stamp {
    right: 0;
    bottom: 6%;
    width: 44px;
  }

  .login-brand-sticker--coin {
    top: 21%;
    right: 14%;
    width: 38px;
  }

  .login-brand-sticker--gift {
    top: 7%;
    left: 2%;
    width: 46px;
  }

  .login-brand-sticker--sparkle {
    top: 11%;
    right: 1%;
    width: 25px;
  }
}

@media (max-width: 900px) {
  .login-screen,
  .register-screen {
    place-items: start center;
    padding: 28px 18px 36px;
  }

  .login-layout,
  .register-layout {
    width: min(620px, 100%);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .login-brand-panel {
    min-height: 0;
    padding: 0 10px;
  }

  .login-brand-content {
    justify-content: flex-start;
    gap: 22px;
    padding-right: 50px;
  }

  .login-brand-topline {
    justify-content: flex-start;
  }

  .login-brand-logo {
    width: 220px;
    height: 92px;
  }

  .login-brand-message {
    max-width: 520px;
    margin: 0;
  }

  .login-brand-message h1 {
    max-width: 470px;
    margin: 12px 0 9px;
    font-size: clamp(32px, 7vw, 44px);
  }

  .login-brand-message p {
    max-width: 450px;
    font-size: 14px;
    line-height: 1.55;
  }

  .login-brand-footer {
    display: none;
  }

  .login-brand-sticker--card {
    top: 4px;
    right: 0;
    width: 42px;
  }

  .login-brand-sticker--scratch {
    top: 45%;
    right: 0;
    bottom: auto;
    width: 34px;
  }

  .login-brand-sticker--stamp {
    right: 1px;
    bottom: 0;
    width: 36px;
  }

  .login-brand-sticker--coin {
    top: 25%;
    right: 4%;
    width: 28px;
  }

  .login-brand-sticker--gift {
    top: 45%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 30px;
  }

  .login-brand-sticker--sparkle {
    top: 13%;
    right: 17%;
    width: 22px;
  }

  .login-form-panel {
    max-width: none;
    justify-self: stretch;
    padding: 32px 28px 84px;
  }

  .login-form-wrap {
    max-width: 500px;
    margin: auto;
  }

  .login-form-heading {
    margin-bottom: 25px;
  }

  .login-form-heading h2 {
    font-size: 32px;
  }

  .login-language-selector,
  .register-language-selector {
    right: 50%;
    bottom: 18px;
    width: min(calc(100vw - 36px), 320px);
    transform: translateX(50%);
  }

  .login-language-selector .language-selector-pills,
  .register-language-selector .language-selector-pills {
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 16px !important;
  }

  .login-language-selector .language-selector-pills > svg,
  .register-language-selector .language-selector-pills > svg {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-screen,
  .register-screen {
    padding: 22px 16px 30px;
  }

  .login-layout,
  .register-layout {
    gap: 20px;
  }

  .login-brand-panel {
    padding-inline: 4px;
  }

  .login-brand-content {
    gap: 18px;
    padding-right: 46px;
  }

  .login-brand-logo {
    width: 190px;
    height: 80px;
  }

  .login-brand-message h1 {
    max-width: 360px;
    font-size: 33px;
  }

  .login-brand-message p {
    max-width: 350px;
    font-size: 13px;
  }

  .login-form-panel {
    padding: 28px 21px 82px;
    border-radius: 20px;
  }

  .login-form-heading h2 {
    font-size: 29px;
  }

  .login-form {
    gap: 18px;
  }

  .login-password-label {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .login-screen,
  .register-screen {
    padding-inline: 12px;
  }

  .login-form-panel {
    padding-inline: 17px;
  }

  .login-brand-message h1 {
    font-size: 29px;
  }

  .login-language-selector,
  .register-language-selector {
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-form-panel a,
  .login-link-button {
    transition: none;
  }
}
.register-form-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  justify-self: end;
  align-self: center;
  padding: clamp(28px, 4vw, 42px) clamp(22px, 4vw, 38px) 84px;
  overflow: visible;
  border: 1px solid #303030;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 232, 129, 0.08), transparent 36%), #1b1b1b;
  color: #f5f7f6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  scrollbar-color: #303030 transparent;
  scrollbar-width: thin;
}

.register-layout {
  align-items: start;
}

.register-form-content {
  width: min(100%, 520px);
  margin: 0 auto;
  container-type: inline-size;
}

.register-form-heading {
  margin-bottom: 25px;
  text-align: left;
}

.register-form-heading h1 {
  margin: 0 0 8px;
  color: #f5f7f6;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.register-form-heading p {
  margin: 0;
  color: #a4aaa7;
  font-size: 13px;
  line-height: 1.6;
}

.register-form-content .form-label {
  display: block;
  color: #dedede;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.register-form-panel .resgat-input {
  box-sizing: border-box;
  min-height: 52px;
  border: 1px solid #393939;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  color-scheme: dark;
}

.register-form-panel .resgat-input::placeholder {
  color: #8e8e93;
}

.register-form-panel select.resgat-input option {
  background: #1a1a1a;
  color: #fff;
}

.register-form-panel .resgat-input:focus {
  border-color: #00e881;
  box-shadow: 0 0 0 3px rgba(0, 232, 129, 0.16);
}

.register-form-panel .resgat-input:disabled {
  border-color: #303030;
  background: #222;
  color: #8e8e93;
}

.register-form-content svg[color='#89948d'] {
  color: #8e8e93 !important;
}

.register-form-content input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #00e881;
}

.register-form-error {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid rgba(230, 57, 70, 0.38);
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.12);
  color: #ff9a9f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.register-form-error button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.register-social-confirmed {
  margin: 14px 0 0;
  color: #00e881;
  font-size: 13px;
  line-height: 1.5;
}

.register-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #a4aaa7;
  font-size: 12px;
}

.register-divider span:first-child,
.register-divider span:last-child {
  height: 1px;
  flex: 1;
  background: #303030;
}

.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c9d0cc;
  font-size: 13px;
  line-height: 1.5;
}

.register-submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  margin-top: 4px;
}

.register-login-prompt {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #303030;
  text-align: center;
}

.register-login-prompt p {
  margin: 0;
  color: #a4aaa7;
  font-size: 13px;
}

.register-login-prompt a {
  color: #00e881;
  font-weight: 700;
}

.register-login-prompt a:hover {
  color: #17f49a;
  text-decoration: underline;
}

.turnstile-dev-notice,
.turnstile-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.turnstile-dev-notice {
  color: #a4aaa7;
}

.turnstile-error {
  margin-top: 8px;
  color: #ff9a9f;
}

.register-form-panel--success {
  display: flex;
  min-height: 470px;
  align-items: center;
  justify-content: center;
}

.register-success-card {
  width: min(100%, 510px);
  box-sizing: border-box;
  margin: auto;
  padding: 20px;
  text-align: center;
}

.register-success-card > svg {
  margin-bottom: 22px;
}

.register-success-eyebrow {
  display: block;
  color: #00e881;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.register-success-card h2 {
  margin: 10px 0;
  color: #f5f7f6;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.register-success-card p {
  margin: 0 0 24px;
  color: #a4aaa7;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.register-success-card p strong {
  color: #fff;
}

.register-success-card .resgat-btn {
  width: 100%;
  justify-content: center;
}

.register-form-panel--success .register-language-selector {
  right: 22px;
  bottom: 18px;
}

@media (max-width: 980px) {
  .register-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  }

  .register-form-panel {
    padding-inline: 30px;
  }
}

@media (max-width: 900px) {
  .register-layout {
    width: min(620px, 100%);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
  }

  .register-form-panel {
    max-width: none;
    justify-self: stretch;
    padding: 30px 28px 84px;
  }

  .register-form-content {
    max-width: 520px;
  }

  .register-form-heading {
    margin-bottom: 24px;
  }

  .register-form-panel--success {
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .register-form-panel {
    padding: 27px 21px 82px;
    border-radius: 20px;
  }

  .register-form-heading h1 {
    font-size: 29px;
  }

  .register-success-card {
    padding: 16px 4px;
  }

  .register-success-card h2 {
    font-size: 25px;
  }
}

@media (max-width: 360px) {
  .register-form-panel {
    padding-inline: 17px;
  }

  .register-form-heading h1 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-form-panel a {
    transition: none;
  }
}
.gamification-form label {
  display: grid;
  gap: 7px;
  color: var(--text-muted, #aaa);
  font-size: 13px;
}

.gamification-form input.resgat-input,
.gamification-form select.resgat-input,
.gamification-form textarea.resgat-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gamification-form input[type='checkbox'] {
  width: auto;
  accent-color: #00e881;
}

.gamification-form small {
  color: var(--text-muted, #888);
  font-size: 12px;
}

@media (max-width: 640px) {
  .gamification-form .resgat-card {
    padding: 13px !important;
  }
}
