: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, .4);
  box-shadow: 0 4px 12px rgba(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, .4);
  box-shadow: 0 4px 12px rgba(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, .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, .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, .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, .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 .18s ease, background-color .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 .18s ease, background-color .18s ease, box-shadow .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 .18s ease, background-color .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 .18s ease, transform .18s ease, box-shadow .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(.18, .88, .28, 1.25) forwards;
}

@keyframes brand-sticker-enter {
  from { opacity: 0; transform: translate(50vw, 50vh) scale(.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; }
}
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 16% 12%, rgba(0, 232, 129, .08), transparent 30%),
    #0b0f0d;
}

.login-layout {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f7f9f7;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .42);
}

.login-brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 0;
  padding: clamp(36px, 5vw, 68px);
  color: #fff;
  background:
    radial-gradient(ellipse at 14% 8%, rgba(0, 232, 129, .15), transparent 36%),
    linear-gradient(145deg, #111a15 0%, #0b100d 52%, #101713 100%);
}

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

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

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

.login-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
}

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

.login-brand-logo {
  display: block;
  width: clamp(260px, 25vw, 340px);
  height: clamp(108px, 10vw, 138px);
  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, .12);
  border-radius: 999px;
  color: #c5d1ca;
  background: rgba(255, 255, 255, .045);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.login-brand-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e881;
  box-shadow: 0 0 12px rgba(0, 232, 129, .75);
}

.login-brand-message {
  max-width: 420px;
  margin: 54px 0 38px;
}

.login-brand-kicker,
.login-form-eyebrow {
  color: #00e881;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.login-brand-message h1 {
  max-width: 400px;
  margin: 20px 0 18px;
  color: #f7fbf8;
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.login-brand-message p {
  max-width: 350px;
  margin: 0;
  color: #a2b0a8;
  font-size: 16px;
  line-height: 1.75;
}

.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-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(0, 232, 129, .3);
  border-radius: 10px;
  color: #00e881;
  font-size: 18px;
  flex: 0 0 29px;
}

.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, .1);
  filter: blur(85px);
  pointer-events: none;
}

.login-brand-glow--one { right: 3%; top: 32%; }
.login-brand-glow--two { left: 14%; bottom: -20%; opacity: .55; }

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

.login-brand-sticker--card { width: clamp(100px, 13vw, 168px); right: 7%; top: 32%; transform: rotate(9deg); }
.login-brand-sticker--scratch { width: clamp(82px, 10vw, 132px); right: 20%; bottom: 19%; transform: rotate(-10deg); }
.login-brand-sticker--stamp { width: clamp(62px, 8vw, 100px); right: 4%; bottom: 14%; transform: rotate(11deg); }
.login-brand-sticker--coin { width: clamp(54px, 6vw, 76px); right: 34%; top: 23%; transform: rotate(-12deg); }

.login-form-panel {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(36px, 6vw, 88px) 92px;
  color: #17211b;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 232, 129, .07), transparent 33%),
    #f7f9f7;
}

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

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

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

.login-form-eyebrow { color: #168453; }

.login-form-heading h2 {
  margin: 13px 0 8px;
  color: #17211b;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.login-form-heading p {
  margin: 0;
  color: #748078;
  font-size: 14px;
  line-height: 1.6;
}

.login-error {
  margin: -12px 0 20px;
  padding: 12px 14px;
  border: 1px solid #f1c6c6;
  border-radius: 12px;
  color: #a43131;
  background: #fff0f0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 21px; }
.login-field { min-width: 0; }
.login-field label { display: block; margin-bottom: 8px; color: #344139; font-size: 13px; font-weight: 700; }
.login-password-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-password-label a { color: #168453; font-size: 12px; font-weight: 700; text-decoration: none; }
.login-password-label a:hover, .login-register-prompt a:hover { color: #00a85e; text-decoration: underline; }

.login-input-wrap { position: relative; }
.login-input-wrap > svg { position: absolute; z-index: 1; left: 15px; top: 50%; color: #89948d; 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 #dce3de;
  border-radius: 12px;
  color: #17211b;
  background: #fff;
  font-size: 14px;
}
.login-form-panel .resgat-input::placeholder { color: #a3aca6; }
.login-form-panel .resgat-input:focus { border-color: #00b96e; box-shadow: 0 0 0 3px rgba(0, 232, 129, .13); }
.login-submit { width: 100%; min-height: 54px; 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: #98a29b; font-size: 11px; font-weight: 700; }
.login-divider::before, .login-divider::after { height: 1px; flex: 1; content: ''; background: #e1e6e2; }
.login-social-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.login-social-button { display: flex; min-height: 49px; align-items: center; justify-content: center; gap: 9px; border: 1px solid #dce3de; border-radius: 12px; color: #202723; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.login-social-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #aab8af; box-shadow: 0 7px 18px rgba(28, 52, 38, .08); }
.login-social-button:disabled { opacity: .55; cursor: not-allowed; }
.login-social-button--apple { border-color: #151a17; color: #fff; background: #151a17; }
.login-social-button--apple:hover:not(:disabled) { border-color: #2f3c34; }

.login-register-prompt { margin: 31px 0 0; color: #7a857e; font-size: 13px; text-align: center; }
.login-register-prompt a { color: #168453; font-weight: 800; text-decoration: none; }
.login-language-selector { position: absolute; right: 28px; bottom: 24px; }
.login-language-selector > div { border-color: #e1e6e2 !important; background: #fff !important; }
.login-language-selector button:not([style*="background-color: rgb(0, 232, 129)"]) { color: #68736c !important; }
.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: #dce3de !important;
  background: #fff !important;
}
.login-language-selector .language-selector-pill,
.register-language-selector .language-selector-pill {
  min-width: 0;
  padding: 6px 9px !important;
  color: #68736c !important;
  font-size: 11px !important;
}
.login-language-selector .language-selector-pill.is-selected,
.register-language-selector .language-selector-pill.is-selected {
  color: #155f3d !important;
  background-color: #dff3e8 !important;
}

@media (max-width: 980px) {
  .login-layout { min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr); }
  .login-brand-panel { padding: 38px; }
  .login-brand-message h1 { font-size: clamp(38px, 5vw, 52px); }
  .login-brand-badge { padding: 8px 10px; font-size: 10px; }
  .login-form-panel { padding-inline: 42px; }
  .login-brand-sticker--card { right: 5%; }
}

@media (max-width: 760px) {
  .login-screen { display: block; }
  .login-layout { width: 100%; min-height: 100vh; min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: visible; }
  .login-brand-panel { min-height: 0; padding: 27px 28px 30px; }
  .login-brand-content { gap: 36px; }
  .login-brand-logo { width: 220px; height: 92px; }
  .login-brand-badge { padding: 7px 10px; font-size: 9px; }
  .login-brand-message { max-width: 500px; margin: 0; }
  .login-brand-message h1 { max-width: 440px; margin: 12px 0 9px; font-size: clamp(31px, 7vw, 43px); }
  .login-brand-message p { max-width: 410px; font-size: 13px; line-height: 1.55; }
  .login-brand-kicker { font-size: 9px; }
  .login-brand-footer { max-width: 390px; font-size: 10px; }
  .login-brand-sticker--card { width: 78px; right: 9%; top: 29%; opacity: .76; }
  .login-brand-sticker--scratch { width: 63px; right: 24%; bottom: 11%; opacity: .72; }
  .login-brand-sticker--stamp { width: 50px; right: 6%; bottom: 9%; opacity: .72; }
  .login-brand-sticker--coin { width: 44px; right: 34%; top: 18%; opacity: .7; }
  .login-form-panel { min-height: 0; padding: 43px 30px 90px; }
  .login-form-wrap { max-width: 440px; }
  .login-form-heading { margin-bottom: 26px; }
  .login-form-heading h2 { font-size: 32px; }
}

@media (max-width: 480px) {
  .login-screen { padding: 0; background: #f7f9f7; }
  .login-layout { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .login-brand-panel { padding: 22px 22px 25px; }
  .login-brand-content { gap: 25px; }
  .login-brand-panel { padding-bottom: 22px; }
  .login-brand-content { justify-content: flex-start; }
  .login-brand-logo { width: 190px; height: 80px; }
  .login-brand-badge { max-width: 132px; gap: 6px; padding: 7px 8px; overflow: hidden; text-overflow: ellipsis; }
  .login-brand-message h1 { max-width: 340px; font-size: 32px; }
  .login-brand-message p { max-width: 330px; font-size: 12px; }
  .login-brand-footer { margin-top: 4px; }
  .login-brand-sticker--card { width: 59px; right: 7%; top: 31%; }
  .login-brand-sticker--scratch { width: 48px; right: 21%; bottom: 9%; }
  .login-brand-sticker--stamp { width: 38px; right: 5%; bottom: 8%; }
  .login-brand-sticker--coin { width: 34px; right: 34%; top: 18%; }
  .login-form-panel { padding: 34px 23px 86px; }
  .login-form-heading h2 { font-size: 29px; }
  .login-form { gap: 18px; }
  .login-social-actions { gap: 8px; }
  .login-social-button { min-height: 46px; }
  .login-language-selector { right: 50%; bottom: 19px; transform: translateX(50%); }
  .login-language-selector { width: min(calc(100vw - 36px), 320px); display: flex; justify-content: center; }
  .login-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 { display: none; }
  .login-language-selector .language-selector-pill { padding-inline: 7px !important; }
}

@media (max-width: 360px) {
  .login-brand-panel { padding-inline: 18px; }
  .login-brand-message h1 { max-width: 280px; font-size: 29px; }
  .login-form-panel { padding-inline: 18px; }
  .login-social-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .login-social-button { transition: none; }
}
.register-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0b0f0d;
}

.register-layout {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}

.register-layout > .login-brand-panel { min-height: 100vh; min-height: 100dvh; }
.register-layout .login-brand-message p { max-width: 260px; }
.register-layout .login-brand-sticker--scratch { right: 4%; bottom: 12%; width: clamp(76px, 9vw, 112px); }
.register-layout .login-brand-sticker--stamp { right: 2%; bottom: 5%; width: clamp(58px, 7vw, 84px); }

.register-form-panel {
  position: relative;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 72px clamp(36px, 6vw, 88px) 92px;
  color: #17211b;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 232, 129, .07), transparent 33%),
    #f7f9f7;
  scrollbar-color: #c5d0c9 transparent;
  scrollbar-width: thin;
}

.register-form-content {
  width: min(100%, 850px);
  margin: 0 auto;
  padding-bottom: 18px;
}

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

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

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

.register-form-panel .resgat-input {
  box-sizing: border-box;
  min-height: 52px;
  border: 1px solid #dce3de;
  border-radius: 12px;
  color: #17211b;
  background: #fff;
  font-size: 14px;
}
.register-form-panel .resgat-input::placeholder { color: #a3aca6; }
.register-form-panel select.resgat-input {
  color-scheme: light;
  color: #17211b;
  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='%23748078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.register-form-panel select.resgat-input option { color: #17211b; background: #fff; }

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

.register-form-panel .resgat-input:disabled { color: #89948d; background: #eef2ef; }
.register-form-panel [type='checkbox'] { accent-color: #00b96e; }

/* The registration flow still has a few legacy inline colors; keep those
   controls consistent with the light login form while preserving selected states. */
.register-form-content label { color: #344139 !important; }
.register-form-content [style*="color: rgb(160, 160, 160)"],
.register-form-content [style*="color: rgb(170, 170, 170)"],
.register-form-content [style*="color: rgb(102, 102, 102)"] { color: #66736b !important; }
.register-form-content [style*="color: rgb(255, 255, 255)"]:not(button) { color: #17211b !important; }
.register-form-content [style*="color: rgb(0, 232, 129)"]:not(button) { color: #168453 !important; }
.register-form-content [style*="background-color: rgb(34, 34, 34)"] {
  border-color: #dce3de !important;
  background-color: #fff !important;
}
.register-form-content [style*="background: rgb(31, 31, 31)"] { background: #e1e6e2 !important; }
.register-form-content [style*="background-color: rgba(230, 57, 70"] {
  border-color: #f1c6c6 !important;
  color: #a43131 !important;
  background-color: #fff0f0 !important;
}
.register-form-content [style*="border-top:"] { border-color: #e1e6e2 !important; }
.register-form-content [style*="border: 1px solid rgb(0 0 0 / 50%)"] { border-color: #dce3de !important; }
.register-form-content svg[color="#666"] { color: #89948d !important; }

.register-form-panel a { transition: color .18s ease; }

.register-form-panel [type='checkbox'] { accent-color: #00e881; }

.register-success-card {
  width: min(100%, 510px);
  box-sizing: border-box;
  margin: auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #e1e7e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 52, 38, .1);
  text-align: center;
}

.register-success-card > svg { margin-bottom: 22px; }
.register-success-eyebrow { display: block; color: #168453; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.register-success-card h2 { margin: 10px 0; color: #17211b; font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.register-success-card p { margin: 0 0 24px; color: #748078; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.register-success-card p strong { color: #17211b; }
.register-success-card .resgat-btn { justify-content: center; }

.register-form-panel--success { display: flex; align-items: center; justify-content: center; }
.register-form-panel--success .register-success-card { margin: 0 auto; }

.register-language-selector { position: absolute; right: 28px; bottom: 24px; z-index: 4; }
.register-language-selector > div { border-color: #e1e6e2 !important; background: #fff !important; }
.register-language-selector button:not([style*="background-color: rgb(0, 232, 129)"]) { color: #68736c !important; }

@media (max-width: 1050px) {
  .register-layout { grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr); }
  .register-form-panel { padding-inline: 42px; }
  .register-layout .login-brand-panel { padding: 38px; }
  .register-layout .login-brand-message h1 { font-size: clamp(38px, 5vw, 52px); }
}

@media (max-width: 760px) {
  .register-screen { overflow: visible; }
  .register-layout { min-height: 100vh; min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .register-layout > .login-brand-panel { min-height: 0; }
  .register-form-panel { height: auto; min-height: 560px; overflow: visible; padding: 43px 30px 94px; }
  .register-form-heading { margin-bottom: 24px; }
  .register-form-heading h1 { font-size: 32px; }
  .register-language-selector { right: 50%; bottom: 22px; transform: translateX(50%); }
  .register-language-selector { width: min(calc(100vw - 36px), 320px); display: flex; justify-content: center; }
  .register-language-selector .language-selector-pills { width: 100%; box-sizing: border-box; flex-wrap: wrap; justify-content: center; border-radius: 16px !important; }
  .register-language-selector .language-selector-pills > svg { display: none; }
  .register-form-panel--success { min-height: 480px; }
}

@media (max-width: 480px) {
  .register-form-panel { min-height: 520px; padding: 34px 23px 90px; }
  .register-form-heading h1 { font-size: 29px; }
  .register-success-card { padding: 28px 22px; }
  .register-success-card h2 { font-size: 25px; }
  .register-form-content [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .register-form-content { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .register-layout .login-brand-panel { padding-inline: 18px; }
  .register-form-panel { padding-inline: 18px; }
  .register-form-heading h1 { font-size: 27px; }
  .register-language-selector { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .register-form-panel a { transition: none; }
}
