:root {
  --primary: #7b348f;
  --primary-dark: #2a0d35;
  --selected: #f0d7ef;
  --lavender: #d889cf;
  --peach: #fff8ee;
  --blue: #e9f7f7;
  --ink: #23102d;
  --muted: #80677f;
  --bg: #fbfafc;
  --line: #eaddea;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--selected);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.app.loginMode {
  grid-template-columns: 1fr;
}

.hidden {
  display: none !important;
}

.sidebar {
  background: #fff;
  border-right: 1px solid rgba(123, 52, 143, .12);
  padding: 20px;
  box-shadow: 12px 0 34px rgba(35, 16, 45, .035);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brandIcon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7b348f, #ec6aa8);
  font-size: 28px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
}

p {
  color: var(--muted);
}

.nav,
button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover:not(:disabled),
.nav:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.loginBox > #loginButton,
#refreshButton,
#logoutButton,
.primaryBtn {
  background: linear-gradient(90deg, #7b348f 0%, #ec6aa8 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(123, 52, 143, .22);
}

.whatsappStyleBtn {
  width: fit-content;
  min-width: 190px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 28px;
  text-align: center;
  background: linear-gradient(90deg, #7b348f 0%, #ec6aa8 100%);
  box-shadow: 0 12px 26px rgba(123, 52, 143, .28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.whatsappStyleBtn::before {
  content: '+';
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1.6px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.whatsappStyleBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(123, 52, 143, .34);
  filter: saturate(1.04);
}

.whatsappStyleBtn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(123, 52, 143, .24);
}

.nav.active {
  background: linear-gradient(90deg, rgba(123, 52, 143, .15), rgba(236, 106, 168, .18));
  color: var(--ink);
}

.nav:hover {
  background: rgba(123, 52, 143, .075);
}

.secondaryBtn {
  color: var(--ink);
  background: var(--selected);
  border: 1px solid rgba(123, 52, 143, .35);
  text-align: center;
  box-shadow: 0 10px 22px rgba(35, 16, 45, .045);
}

.secondaryBtn:hover:not(:disabled),
.secondaryBtn:focus-visible {
  background: linear-gradient(90deg, rgba(123, 52, 143, .14), rgba(236, 106, 168, .16));
  color: var(--ink);
}

.formActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.formActions button {
  text-align: center;
}

.successNotice {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(24, 163, 84, .18);
  background: rgba(24, 163, 84, .08);
}

.assetForm {
  margin-bottom: 18px;
}

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

.assetCard {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: start;
}

.assetIcon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
  background: linear-gradient(135deg, #7b348f 0%, #ec6aa8 100%);
  box-shadow: 0 12px 24px rgba(123, 52, 143, .2);
}

.assetCard a,
.mutedText {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.paymentSettingsCard {
  margin-bottom: 18px;
}

.paymentSettingsLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.qrPreviewBox {
  min-height: 260px;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(123, 52, 143, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(123, 52, 143, .055), rgba(236, 106, 168, .08), #fff);
  box-shadow: 0 16px 34px rgba(35, 16, 45, .07);
  text-align: center;
}

.qrPreviewBox img,
.qrPlaceholder {
  width: 142px;
  height: 142px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(123, 52, 143, .16);
  box-shadow: 0 12px 28px rgba(35, 16, 45, .08);
}

.qrPlaceholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 34px;
}

.qrPreviewBox span {
  color: var(--muted);
  font-size: 13px;
}

.fullScreenSuccess {
  min-height: auto;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px 20px;
}

.successCircle {
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #18a957 0%, #9fdf9f 100%);
  box-shadow: 0 18px 42px rgba(24, 169, 87, .26);
}

.fullScreenSuccess h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: var(--ink);
}

.fullScreenSuccess p {
  margin: 0 0 26px;
  color: var(--muted);
  font-weight: 700;
}

.successNotice.danger {
  border-color: rgba(204, 0, 51, .18);
  background: rgba(204, 0, 51, .08);
}

.successIcon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #18a354;
  font-size: 26px;
  font-weight: 900;
}

.successNotice.danger .successIcon {
  background: #cc0033;
}

.successNotice strong,
.successNotice span {
  display: block;
}

.successNotice strong {
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 3px;
}

.successNotice span {
  color: var(--muted);
  font-weight: 650;
}

.publishHint strong {
  color: var(--primary);
}

.toastNotice {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(24, 163, 84, .22);
  box-shadow: 0 22px 55px rgba(35, 16, 45, .18);
  animation: toastIn .22s ease-out;
}

.toastNotice.danger {
  border-color: rgba(204, 0, 51, .22);
}

.toastNotice.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
}

.toastNotice strong,
.toastNotice span {
  display: block;
}

.toastNotice strong {
  color: var(--ink);
  font-size: 16px;
}

.toastNotice span {
  color: var(--muted);
  font-weight: 650;
  margin-top: 2px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#logoutButton {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(123, 52, 143, .45);
  box-shadow: 0 10px 22px rgba(35, 16, 45, .045);
}

.plainButton {
  width: auto;
  color: var(--primary);
  background: transparent;
  padding: 0 0 12px;
  box-shadow: none;
}

.linkButton {
  width: auto;
  margin-left: auto;
  padding: 8px 0;
  color: var(--primary);
  background: transparent;
  text-align: right;
  box-shadow: none;
}

.content {
  padding: 28px 24px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.topbar button {
  width: auto;
  min-width: 78px;
  border-radius: 12px;
  text-align: center;
}

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

.login {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

#panelView {
  min-height: calc(100vh - 48px);
}

#panelView.successMode {
  min-height: calc(100vh - 56px);
}

#panelView.successMode .topbar {
  display: none;
}

#panelView.successMode #output {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.loginBox,
.card {
  background: #fff;
  border: 1px solid rgba(123, 52, 143, .16);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(35, 16, 45, .065);
}

.loginBox {
  width: min(420px, 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(123, 52, 143, .18);
  border-radius: 10px;
  padding: 13px 12px;
  margin-top: 6px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 26px rgba(35, 16, 45, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.passwordField {
  position: relative;
}

.passwordField input {
  padding-right: 46px;
}

.eyeButton {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-size: 15px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(216, 137, 207, .35);
  border-color: var(--lavender);
  box-shadow: 0 14px 30px rgba(123, 52, 143, 0.13);
}

option:checked {
  background: var(--selected);
  color: var(--ink);
}

label {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

label input,
label select,
label textarea {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 48px;
}

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

.fieldBlock {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.fieldLabel {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.radioPill {
  margin: 0;
  display: block;
}

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

.radioPill span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(123, 52, 143, .18);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(35, 16, 45, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.radioPill input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #18a85b, #9fdf9f);
  box-shadow: 0 16px 32px rgba(24, 168, 91, .22);
}

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

.timeSelectGroup select {
  margin-top: 0;
  padding-left: 10px;
  padding-right: 26px;
  text-align: center;
  font-weight: 800;
}

.formHelp {
  grid-column: 1 / -1;
  padding: 13px 14px;
  margin: 4px 0 12px;
  border: 1px solid rgba(123, 52, 143, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 52, 143, .06), rgba(236, 106, 168, .09));
  box-shadow: 0 12px 28px rgba(35, 16, 45, .045);
}

.formHelp strong,
.formHelp span {
  display: block;
}

.formHelp strong {
  margin-bottom: 4px;
}

.formHelp span {
  color: var(--muted);
}

.subSection {
  border: 1px solid rgba(123, 52, 143, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 52, 143, .055), rgba(236, 106, 168, .08), #fff);
  padding: 16px;
  margin: 0 0 14px;
  box-shadow: 0 12px 30px rgba(35, 16, 45, .045);
}

.subSection h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.subSection p {
  margin: 0;
  color: var(--muted);
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.smallBtn {
  width: auto;
  min-width: 126px;
  padding: 10px 12px;
  border-radius: 999px;
}

.repeatRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 92px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(123, 52, 143, 0.14);
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 16, 45, .045);
}

.repeatRow.compact {
  grid-template-columns: 1fr 1fr 1fr 92px;
}

.nhInsuranceRow.compact {
  grid-template-columns: minmax(180px, 1.2fr) minmax(210px, 1.3fr) minmax(160px, .8fr) minmax(180px, .9fr);
}

.insuranceLogoPreview {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(35, 16, 45, .08);
}

.insuranceLogoPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fileMiniBtn {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(123, 52, 143, .2);
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.fileMiniBtn input {
  display: none;
}

.rowRemoveBtn {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(123, 52, 143, .2);
  padding: 12px 10px;
  border-radius: 999px;
}

.switchLabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid rgba(123, 52, 143, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(35, 16, 45, .04);
}

.switchLabel span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.switchLabel input {
  display: none;
}

.switchLabel i {
  flex: 0 0 48px;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #e36a6a;
  position: relative;
  transition: 180ms ease;
}

.switchLabel i::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(32, 32, 51, 0.22);
  transition: 180ms ease;
}

.switchLabel input:checked + i {
  background: #18a354;
}

.switchLabel input:checked + i::after {
  transform: translateX(22px);
}

.bloodGroupGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bloodGroupSwitch span {
  display: grid;
  gap: 2px;
  font-weight: 900;
}

.bloodGroupSwitch small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.loginBox button {
  margin-top: 14px;
  text-align: center;
}

.roleCards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.roleCard {
  background: #fff;
  border: 1px solid rgba(123, 52, 143, .14);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(35, 16, 45, 0.065);
  color: var(--ink);
  display: grid;
  gap: 6px;
  min-height: 104px;
  text-align: left;
}

.roleCard:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(123, 52, 143, .14);
}

.roleCard strong {
  font-size: 18px;
}

.roleCard span {
  color: var(--muted);
  font-weight: 600;
}

#navList {
  display: grid;
  gap: 4px;
}

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

.card.wide {
  grid-column: span 2;
}

.card.full {
  grid-column: 1 / -1;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary-dark);
}

.emptyState {
  min-height: 180px;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fff, rgba(236, 106, 168, .055));
}

.stat {
  font-size: 30px;
  font-weight: 850;
  color: var(--primary);
}

.card:has(.stat) {
  background: linear-gradient(135deg, #fff, rgba(123, 52, 143, .045), rgba(236, 106, 168, .055));
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.actions button {
  width: auto;
  min-width: 96px;
  text-align: center;
  color: var(--ink);
  background: var(--selected);
  border: 1px solid rgba(123, 52, 143, .18);
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: 0 10px 22px rgba(35, 16, 45, .08);
}

.actions button:hover:not(:disabled),
.actions button:focus-visible {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(123, 52, 143, .14), rgba(236, 106, 168, .16));
}

.actions .renewBtn {
  font-weight: 850;
}

.actions .renewBtn.renewed,
.actions .onState {
  background: linear-gradient(90deg, #168a4f, #26bf75);
}

.actions .renewBtn.expired,
.actions .offState,
.actions .dangerBtn {
  color: #fff;
  background: linear-gradient(90deg, #9a3f9c, #df5ca7);
}

.actions .editBtn {
  color: #fff;
  background: linear-gradient(90deg, #7b348f 0%, #ec6aa8 100%);
}

.actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.bulkBar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.deleteTools {
  padding: 10px 12px;
  border: 1px solid rgba(217, 75, 98, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 12px 28px rgba(35, 16, 45, .06);
}

.compactBtn {
  width: auto;
  min-width: 136px;
  padding: 10px 16px;
  text-align: center;
}

.dangerBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(90deg, #9a3f9c, #df5ca7);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(154, 63, 156, .18);
}

.iconTopButton {
  width: 48px;
  min-width: 48px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.iconTopButton.active {
  outline: 3px solid rgba(217, 75, 98, .22);
}

.selectLine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.selectAllLine {
  margin-bottom: 0;
}

.twoButtons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.historyCard {
  position: relative;
}

.trashBtn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
}

.deleteOrbIcon {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .44), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #ff8f47 0%, #ff3b09 48%, #a90000 100%);
  box-shadow: 0 10px 20px rgba(190, 28, 0, .28), inset 0 2px 3px rgba(255, 255, 255, .22);
}

.deleteOrbIcon.small {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.deleteOrbIcon::before {
  content: "";
  position: absolute;
  left: 28%;
  top: 37%;
  width: 44%;
  height: 34%;
  border-radius: 0 0 5px 5px;
  background: #fff;
  box-shadow:
    inset 7px 0 0 #fff,
    inset 12px 0 0 rgba(255, 75, 25, .92),
    inset 19px 0 0 #fff,
    inset 24px 0 0 rgba(255, 75, 25, .92),
    inset 31px 0 0 #fff;
}

.deleteOrbIcon::after {
  content: "";
  position: absolute;
  left: 24%;
  top: 29%;
  width: 52%;
  height: 8%;
  border-radius: 6px 6px 0 0;
  background: #fff;
  box-shadow: 0 -5px 0 -1px #fff;
}

.deleteOrbIcon.small::before {
  border-radius: 0 0 3px 3px;
}

.deleteOrbIcon.small::after {
  box-shadow: 0 -3px 0 -1px #fff;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(35, 16, 45, 0.42);
  z-index: 50;
}

.modalBackdrop.open {
  display: grid;
}

.modalCard {
  position: relative;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid rgba(123, 52, 143, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(35, 16, 45, 0.24), 0 4px 18px rgba(236, 106, 168, 0.12);
}

.modalClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  text-align: center;
  background: rgba(123, 52, 143, .06);
}

.modalActions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modalActions button {
  text-align: center;
}

#modalSubmit {
  background: linear-gradient(90deg, #7b348f 0%, #ec6aa8 100%);
  color: #fff;
  border-radius: 999px;
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .assetList {
    grid-template-columns: 1fr;
  }

  .paymentSettingsLayout {
    grid-template-columns: 1fr;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

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

  .formActions {
    grid-template-columns: 1fr;
  }

  .sectionHeader {
    display: grid;
  }

  .repeatRow,
  .repeatRow.compact {
    grid-template-columns: 1fr;
  }

  .smallBtn {
    width: 100%;
  }

  .card.wide {
    grid-column: auto;
  }
}
