.records-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(84, 184, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f4f9ff 100%);
}

.records-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 48px;
}

.records-header h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.records-page .record-list,
.records-page .address-book-form {
  margin-top: 18px;
}

.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
  color: #777777;
  font-size: 12px;
  font-weight: 900;
}

.records-toolbar .outline-pill {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.records-intro {
  margin: 18px 0 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 122, 22, 0.12), transparent 52%),
    #f6f6f6;
}

.records-intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.records-intro p {
  margin: 0;
  color: #777777;
  line-height: 1.6;
  font-size: 13px;
}

.records-intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #666666;
  font-size: 12px;
  font-weight: 900;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f7;
  align-items: center;
}

.record-list strong {
  font-size: 15px;
}

.record-list span {
  display: block;
  margin-top: 4px;
  color: #777777;
  font-size: 12px;
}

.record-list b {
  align-self: center;
  font-size: 14px;
  text-align: right;
}

.record-list button {
  flex: 0 0 auto;
}

.record-list .outline-pill {
  min-width: 72px;
}

.record-list article.empty-record,
.record-list article.is-empty,
.merchant-locked-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  text-align: center;
}

.record-list article.empty-record strong,
.record-list article.is-empty strong,
.merchant-locked-card strong {
  font-size: 18px;
}

.record-list article.empty-record span,
.record-list article.is-empty span,
.merchant-locked-card span {
  max-width: 260px;
  margin-top: 0;
  line-height: 1.55;
}

.notification-card {
  position: relative;
  align-items: flex-start;
}

.notification-card.is-unread::before {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.notification-card-body {
  min-width: 0;
  padding-right: 12px;
}

.notification-card p {
  margin: 8px 0 0;
  color: #222222;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-card small {
  display: block;
  margin-top: 10px;
  color: #999999;
  font-size: 11px;
  font-weight: 800;
}

.notification-tag {
  display: inline-flex;
  width: auto;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eeeeee;
  color: #555555;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-book-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f7f7;
}

.address-book-form label {
  display: grid;
  gap: 8px;
  color: #666666;
  font-size: 13px;
  font-weight: 800;
}

.address-book-form input,
.address-book-form select {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 800;
}

.address-book-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-note {
  margin: -2px 0 2px;
  color: #777777;
  font-size: 12px;
  line-height: 1.55;
}

.invite-list {
  margin-top: 18px;
}

.merchant-locked-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf8ee;
  color: var(--green);
}

.merchant-locked-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
}

.address-book-card {
  align-items: flex-start;
}

.address-book-card div {
  min-width: 0;
}

.address-book-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.address-book-card .address-meta {
  display: inline-flex;
  width: auto;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf8ee;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.address-book-card .address-value {
  max-width: 100%;
  word-break: break-all;
}

/* 2026 UI refresh */
.records-page .record-list,
.records-page .address-book-form,
.records-intro,
.record-list article,
.merchant-locked-card,
.address-book-form {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.records-intro,
.record-list article,
.merchant-locked-card,
.address-book-form {
  border-radius: 20px;
}

.records-intro p,
.record-list span,
.field-note,
.address-book-form label {
  color: var(--muted);
}

.records-toolbar .outline-pill,
.record-list .outline-pill {
  border-color: var(--line);
  background: #ffffff;
}

.notification-tag,
.address-book-card .address-meta {
  background: #ecfdf5;
  color: var(--green);
}

.address-book-form input,
.address-book-form select {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
}

/* Tech blue refinement */
.records-intro {
  background:
    linear-gradient(135deg, rgba(36, 124, 255, 0.1), rgba(172, 221, 255, 0.18)),
    #ffffff;
}

.notification-tag,
.address-book-card .address-meta {
  background: #edf7ff;
  color: #1b65d8;
}

.merchant-locked-icon {
  background: #edf7ff;
  color: #247cff;
}

.address-book-form input,
.address-book-form select {
  background: #f7fbff;
}

/* Remove demo-like wrapper frames from list pages */
.records-page .record-list {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.records-list-page {
  gap: 12px;
  margin-top: 0;
}

.records-list-page article {
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.records-list-page article div {
  min-width: 0;
}

.records-list-page strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.records-list-page span {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.records-list-page span small {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.records-list-page b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 58px;
  max-width: 92px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf7ff;
  color: #1b65d8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.records-list-page article.is-empty,
.records-list-page article.empty-record {
  justify-items: center;
  min-height: 126px;
  padding: 24px 18px;
  text-align: center;
}

/* Oh bits notifications and address book */
.records-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 167, 7, 0.08), transparent 30%),
    linear-gradient(180deg, #05080c 0%, #090d12 100%);
}

.records-header {
  min-height: 58px;
}

.records-header h1 {
  color: var(--text);
  font-size: 24px;
}

.mark-read-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

.notification-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 18px;
  padding: 8px;
  border: 1px solid rgba(247, 167, 7, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.notification-tabs button {
  min-height: 52px;
  border: 1px solid #303741;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.notification-tabs button.active {
  border: 0;
  background: linear-gradient(180deg, #ffbe1a, #f7a707);
  color: #080b10;
}

.record-list {
  gap: 14px;
}

.notification-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) 12px;
  align-items: center !important;
  min-height: 150px;
  padding: 20px 18px !important;
  border: 1px solid rgba(247, 167, 7, 0.3);
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%) !important;
  box-shadow: var(--shadow-soft) !important;
}

.notification-card.is-unread::before {
  top: 32px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: var(--brand);
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor, 0 0 26px currentColor;
}

.notification-icon.green {
  color: var(--green-2);
  background: rgba(34, 199, 97, 0.18);
}

.notification-icon.red {
  color: var(--red);
  background: rgba(255, 77, 87, 0.15);
}

.notification-icon.gold,
.notification-icon.orange {
  color: var(--brand);
  background: rgba(247, 167, 7, 0.16);
}

.notification-card strong {
  color: var(--text);
  font-size: 22px;
}

.notification-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.notification-card small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.address-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 22px 0 28px;
  padding: 0 16px;
  border: 1px solid #4a4030;
  border-radius: 14px;
  background: linear-gradient(180deg, #101720, #0b1017);
  color: var(--muted);
}

.address-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.address-book-form {
  display: none;
}

body.address-form-open .address-book-form {
  display: grid;
  position: sticky;
  top: 10px;
  z-index: 8;
  margin-bottom: 18px;
  border-color: rgba(247, 167, 7, 0.45);
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.address-section-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-book-card {
  display: block !important;
  padding: 18px !important;
  border: 1px solid rgba(247, 167, 7, 0.45) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%) !important;
  box-shadow: var(--shadow-soft) !important;
}

.address-book-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
}

.address-coin-stack {
  position: relative;
  display: inline-grid;
  width: 60px;
  height: 60px;
}

.address-coin-stack .coin-icon {
  width: 58px;
  height: 58px;
}

.address-coin-stack small {
  position: absolute;
  right: -2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff2f3d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.address-book-head strong {
  color: var(--text);
  font-size: 20px;
}

.address-book-head span {
  color: var(--muted);
  font-size: 15px;
}

.address-book-head span b {
  color: var(--brand);
}

.address-book-head > i {
  color: var(--brand);
}

.address-value {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px dashed #303741;
  color: var(--text) !important;
  font-size: 18px !important;
}

.address-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: -38px;
}

.address-card-actions button {
  display: grid;
  place-items: center;
  min-width: 58px !important;
  min-height: 44px;
  border-color: rgba(247, 167, 7, 0.6);
  background: transparent;
  color: var(--brand);
}

.address-card-actions button.danger {
  border-color: var(--red);
  color: var(--red);
}

.address-empty-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 52px 18px;
  border: 1px dashed #666b73;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.address-empty-panel i {
  width: 68px;
  height: 68px;
  color: var(--brand);
}

.address-empty-panel strong {
  color: var(--text);
  font-size: 22px;
}

.address-floating-add {
  position: fixed;
  right: calc(50% - min(430px, 100vw) / 2 + 26px);
  bottom: 34px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffbe1a, #f7a707);
  color: #080b10;
  box-shadow: 0 12px 30px rgba(247, 167, 7, 0.3);
}

.address-floating-add svg,
.address-add-trigger svg {
  width: 34px;
  height: 34px;
}

.address-add-trigger {
  color: var(--brand);
}

.address-secure {
  justify-content: flex-start;
  margin-top: 28px;
}
