:root {
  --color-brand: #b688a2;
  --color-brand-soft: #d9bccb;
  --color-ink: #2e2530;
  --color-ink-soft: #5b4a58;
  --color-cream: #faf5f3;
  --color-cream-strong: #f1e6ea;
  --color-white: rgba(255, 255, 255, 0.88);
  --color-line: rgba(82, 53, 70, 0.14);
  --shadow-soft: 0 24px 60px rgba(65, 42, 56, 0.12);
  --shadow-strong: 0 32px 80px rgba(42, 28, 38, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --dashboard-width: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Avenir Next", "Nunito Sans", sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(182, 136, 162, 0.2), transparent 34%),
    radial-gradient(circle at right 20%, rgba(217, 188, 203, 0.45), transparent 25%),
    linear-gradient(180deg, #fffdfc 0%, var(--color-cream) 54%, var(--color-cream-strong) 100%);
}

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

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

code {
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92em;
}

.app-flash-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--dashboard-width), calc(100% - 1rem));
  margin: 0 auto;
  padding-top: 0.75rem;
}

.flash {
  margin-bottom: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.flash--notice {
  background: rgba(248, 255, 249, 0.92);
}

.flash--alert {
  background: rgba(255, 244, 244, 0.95);
}

.auth-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.dashboard-shell {
  width: min(var(--dashboard-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 272px);
  gap: 20px;
  align-items: start;
}

.auth-card,
.surface-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  min-height: 72vh;
  background: rgba(255, 252, 251, 0.78);
  box-shadow: var(--shadow-soft);
  animation: rise-in 700ms ease-out both;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: auto -6% -22% auto;
  width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 136, 162, 0.28), rgba(182, 136, 162, 0));
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 36px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(155deg, #fbf1f5 0%, #e4ced7 100%);
}

.auth-logo {
  width: min(100%, 420px);
}

.auth-tagline,
.auth-note,
.auth-copy,
.client-chip span,
.event-item p,
.event-meta,
.data-table td,
.user-hero-meta {
  color: var(--color-ink-soft);
}

.auth-tagline,
.auth-note {
  margin: 0;
  line-height: 1.7;
}

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.auth-form-wrap h1,
.dashboard-header h1,
.panel-top h2 {
  margin: 0;
  line-height: 1.04;
  font-weight: 700;
}

.auth-form-wrap h1,
.dashboard-header h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: -0.06em;
}

.auth-copy {
  max-width: 44ch;
  margin: 1rem 0 0;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 2rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label,
.filter-field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-group input,
.filter-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(88, 61, 76, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--color-ink);
}

.field-group input:focus,
.filter-field input:focus {
  outline: 2px solid rgba(182, 136, 162, 0.28);
  border-color: var(--color-brand);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-ink);
  color: white;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(35, 25, 33, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #241d26;
  box-shadow: 0 18px 32px rgba(35, 25, 33, 0.24);
}

.primary-action--full {
  width: 100%;
}

.primary-action--compact {
  min-height: 46px;
  white-space: nowrap;
}

.secondary-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.secondary-link--strong {
  border: 1px solid rgba(88, 61, 76, 0.12);
  box-shadow: 0 10px 24px rgba(65, 42, 56, 0.06);
}

.secondary-link--danger {
  background: rgba(93, 44, 68, 0.1);
  color: #5d2c44;
  border: 1px solid rgba(93, 44, 68, 0.14);
}

.back-link--inline {
  min-height: 36px;
  padding: 0 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.floating-admin-controls {
  position: static;
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.floating-admin-controls .admin-badge {
  min-width: 0;
  padding: 14px 18px;
  background: linear-gradient(145deg, rgba(52, 41, 51, 0.96), rgba(34, 28, 38, 0.98));
  border: 1px solid rgba(59, 44, 57, 0.22);
  box-shadow: 0 16px 28px rgba(42, 28, 38, 0.12);
}

.floating-admin-controls .admin-badge span,
.floating-admin-controls .admin-badge strong {
  color: white;
}

.floating-admin-controls .admin-badge span {
  color: rgba(255, 255, 255, 0.72);
}

.floating-admin-controls .ghost-action {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid rgba(143, 49, 66, 0.18);
  background: linear-gradient(145deg, #b34a5f, #922f47);
  color: white;
  box-shadow: 0 14px 28px rgba(146, 47, 71, 0.18);
}

.floating-admin-controls .ghost-action__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.floating-admin-controls .ghost-action__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-admin-controls .ghost-action:hover {
  background: linear-gradient(145deg, #c2556b, #a23650);
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(150deg, #3a2e39 0%, #231c26 100%);
  color: white;
  box-shadow: var(--shadow-strong);
}

.dashboard-header--single {
  grid-template-columns: 1fr;
}

.dashboard-header__brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.dashboard-header__brand--stack {
  align-items: flex-start;
}

.dashboard-header__brand--user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-chip__logo {
  width: 76px;
}

.dashboard-header__actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.floating-admin-controls .button_to,
.dashboard-header__actions .button_to,
.user-hero-side .button_to {
  margin: 0;
}

.user-hero-copy {
  display: grid;
  gap: 12px;
}

.user-hero-side {
  display: grid;
  gap: 14px;
  justify-items: end;
  align-content: start;
}

.manual-flow-form {
  display: grid;
  gap: 18px;
}

.manual-flow-form--single {
  max-width: 760px;
}

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

.manual-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-form {
  width: 100%;
}

.search-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.search-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(88, 61, 76, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.search-card--directory {
  margin-bottom: 0;
}

.search-form__field {
  min-width: 0;
}

.search-form__input {
  width: 100%;
  min-height: 54px;
  padding: 0 1.1rem;
  border: 1px solid rgba(88, 61, 76, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
}

.search-form__input:focus {
  outline: 2px solid rgba(182, 136, 162, 0.24);
  border-color: var(--color-brand);
}

.search-form__submit {
  min-width: 180px;
}

.search-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-form__reset {
  min-height: 46px;
}

.dashboard-header__actions .button_to {
  margin: 0;
}

.admin-badge {
  display: grid;
  gap: 0.2rem;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-badge span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ghost-action {
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  cursor: pointer;
}

.surface-panel {
  margin-top: 20px;
  padding: 28px;
  background: rgba(255, 252, 251, 0.76);
  box-shadow: var(--shadow-soft);
  animation: rise-in 1000ms ease-out both;
}

.panel-top {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.panel-top h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  letter-spacing: -0.04em;
}

.panel-top--filters {
  align-items: center;
}

.linked-order-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(88, 61, 76, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.linked-order-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.linked-order-card__head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.05em;
}

.linked-order-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  color: var(--color-ink-soft);
}

.linked-order-card__summary {
  margin: 14px 0 0;
  color: var(--color-ink);
  line-height: 1.65;
}

.manual-action-form {
  padding: 18px;
  border: 1px solid rgba(88, 61, 76, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.loyalty-choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.loyalty-choice-grid .button_to {
  margin: 0;
}

.loyalty-choice {
  width: 100%;
  min-height: 144px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(88, 61, 76, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  display: grid;
  gap: 0.55rem;
  text-align: left;
  box-shadow: 0 14px 28px rgba(65, 42, 56, 0.06);
}

.loyalty-choice strong,
.loyalty-choice span {
  display: block;
}

.loyalty-choice strong {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.loyalty-choice__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.loyalty-choice--redeem {
  background: linear-gradient(180deg, rgba(249, 238, 243, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(182, 136, 162, 0.22);
}

.loyalty-choice--accrue {
  background: linear-gradient(180deg, rgba(241, 250, 246, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(112, 173, 140, 0.22);
}

.loyalty-choice.is-selected {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(35, 25, 33, 0.12);
}

.loyalty-choice:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}

.loyalty-outcome {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(88, 61, 76, 0.08);
}

.loyalty-outcome--redeem {
  background: linear-gradient(180deg, rgba(249, 238, 243, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(182, 136, 162, 0.2);
}

.loyalty-outcome--accrue {
  background: linear-gradient(180deg, rgba(241, 250, 246, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(112, 173, 140, 0.2);
}

.loyalty-outcome--pending {
  background: linear-gradient(180deg, rgba(246, 242, 246, 0.95), rgba(255, 255, 255, 0.92));
  border-color: rgba(88, 61, 76, 0.12);
}

.loyalty-outcome__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.loyalty-outcome--redeem .loyalty-outcome__icon {
  background: rgba(182, 136, 162, 0.18);
  color: #6f3f5d;
}

.loyalty-outcome--accrue .loyalty-outcome__icon {
  background: rgba(112, 173, 140, 0.18);
  color: #295842;
}

.loyalty-outcome--pending .loyalty-outcome__icon {
  background: rgba(88, 61, 76, 0.12);
  color: var(--color-ink);
}

.loyalty-outcome__copy {
  display: grid;
  gap: 0.35rem;
}

.loyalty-outcome__label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  font-weight: 700;
}

.loyalty-outcome__copy strong {
  color: var(--color-ink);
  font-size: 1.1rem;
}

.loyalty-outcome__copy p {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(182, 136, 162, 0.18);
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 92px;
}

.client-chip {
  display: grid;
  gap: 0.25rem;
  min-width: 210px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid rgba(88, 61, 76, 0.08);
  box-shadow: 0 10px 24px rgba(65, 42, 56, 0.06);
}

.client-chip strong,
.customer-link {
  font-weight: 700;
}

.customer-link {
  color: var(--color-ink);
}

.date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-field {
  display: grid;
  gap: 0.45rem;
  min-width: 164px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table--activity {
  min-width: 1200px;
}

.data-table th,
.data-table td {
  padding: 1rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(88, 61, 76, 0.08);
  vertical-align: top;
}

.data-table th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.data-table td strong {
  color: var(--color-ink);
}

.data-table__summary {
  min-width: 320px;
  max-width: 460px;
  line-height: 1.7;
}

.bonus-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.bonus-pill--positive {
  background: rgba(132, 190, 158, 0.18);
  color: #295842;
}

.bonus-pill--negative {
  background: rgba(182, 136, 162, 0.18);
  color: #6f3f5d;
}

.bonus-pill--neutral {
  background: rgba(88, 61, 76, 0.1);
  color: var(--color-ink);
}

.primary-action--danger {
  background: #5d2c44;
}

.primary-action--danger:hover {
  background: #4d2439;
}

.primary-action--soft {
  background: #7b5d70;
}

.primary-action--soft:hover {
  background: #694d60;
}

.user-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.user-hero-stat {
  display: grid;
  gap: 0.3rem;
  min-width: 210px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

.user-hero-stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.user-hero-stat strong {
  font-size: 1.12rem;
  color: white;
}

.user-hero-stat--interactive {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.user-hero-stat--interactive:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(20, 16, 20, 0.18);
}

.user-hero-stat--phone {
  background: rgba(255, 255, 255, 0.14);
}

.user-hero-stat--bonus {
  background: rgba(182, 136, 162, 0.24);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-hero-stat--level {
  background: rgba(255, 255, 255, 0.16);
}

.user-hero-stat--birthday {
  background: rgba(255, 255, 255, 0.12);
}

.user-qr-card {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  width: 240px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.user-qr-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 28px rgba(20, 16, 20, 0.18);
}

.user-qr-card__image {
  display: block;
  width: 108px;
  height: 108px;
}

.user-qr-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.user-hero-stat__hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.user-hero-stat--bonus-editor {
  min-width: min(420px, 100%);
  gap: 0.75rem;
}

.balance-editor {
  display: grid;
  gap: 0.6rem;
}

.balance-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.balance-editor__input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-ink);
  font: inherit;
}

.balance-editor__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.event-feed {
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(88, 61, 76, 0.08);
}

.event-item--system {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 255, 255, 0.9));
  border-color: rgba(181, 155, 90, 0.18);
}

.event-item--program {
  background: linear-gradient(180deg, rgba(249, 242, 246, 0.98), rgba(255, 255, 255, 0.92));
  border-color: rgba(182, 136, 162, 0.18);
}

.event-item__time span {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(182, 136, 162, 0.1);
  color: var(--color-ink-soft);
  font-size: 0.86rem;
}

.event-item__heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.event-item__content {
  min-width: 0;
}

.event-item__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.event-item__action {
  min-height: 38px;
  padding: 0 0.9rem;
}

.event-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.event-item__icon--default {
  background: rgba(88, 61, 76, 0.08);
  color: var(--color-ink);
}

.event-item__icon--system {
  background: rgba(213, 181, 94, 0.16);
  color: #7a5b11;
}

.event-item__icon--program {
  background: rgba(182, 136, 162, 0.18);
  color: #6f3f5d;
}

.event-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.7rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-item__badge--default {
  background: rgba(88, 61, 76, 0.08);
  color: var(--color-ink-soft);
}

.event-item__badge--system {
  background: rgba(213, 181, 94, 0.14);
  color: #7a5b11;
}

.event-item__badge--program {
  background: rgba(182, 136, 162, 0.18);
  color: #6f3f5d;
}

.event-item__body h3 {
  margin: 0;
  font-size: 1rem;
}

.event-item__body p {
  margin: 0;
  line-height: 1.7;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(88, 61, 76, 0.08);
}

.pagination-bar__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.pagination-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-bar__link--disabled {
  opacity: 0.48;
  pointer-events: none;
}

.directory-filters {
  display: grid;
  gap: 18px;
}

.directory-filters__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state {
  margin: 0;
  padding: 1rem 0;
  color: var(--color-ink-soft);
  text-align: center;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 980px) {
  .auth-card,
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr;
  }

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

  .dashboard-header__brand--user {
    grid-template-columns: 1fr;
  }

  .user-hero-side {
    justify-items: start;
  }

  .panel-top,
  .panel-top--filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-filters {
    width: 100%;
  }

  .manual-flow-grid,
  .manual-action-grid,
  .loyalty-choice-grid {
    grid-template-columns: 1fr;
  }

  .directory-filters__grid,
  .balance-editor__row {
    grid-template-columns: 1fr;
  }

  .linked-order-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .loyalty-outcome {
    flex-direction: column;
  }

  .search-form__row {
    grid-template-columns: 1fr;
  }

  .search-form__actions,
  .search-form__submit {
    width: 100%;
  }

  .panel-actions,
  .panel-actions > * {
    width: 100%;
  }

  .search-form__actions {
    justify-content: stretch;
  }

  .search-form__actions > * {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .dashboard-shell {
    width: min(1180px, calc(100% - 1rem));
    padding: 16px 0 32px;
  }

  .auth-card,
  .surface-panel,
  .dashboard-header {
    border-radius: 24px;
  }

  .auth-brand,
  .auth-form-wrap,
  .surface-panel,
  .dashboard-header {
    padding: 22px;
  }

  .client-chip {
    width: 100%;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .event-item__heading {
    flex-direction: column;
  }

  .filter-field,
  .filter-actions,
  .date-filters,
  .pagination-bar__actions,
  .pagination-bar__link {
    width: 100%;
  }

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

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