:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e4e2e2;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --border-color: #e5e7eb;
  --border-light: #e9ecef;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --hover-bg: #f0f0f0;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(249, 250, 251, 0.7);
}

body.dark-mode {
  --bg-primary: #010101;
  --bg-secondary: #0e0e0e;
  --bg-tertiary: #252525;
  --text-primary: #e5e5e5;
  --text-secondary: #b8b8b8;
  --text-tertiary: #888888;
  --border-color: #2a2a2a;
  --border-light: #333333;
  --card-bg: #1a1a1a;
  --input-bg: #1a1a1a;
  --hover-bg: #111111;
  --overlay-bg: rgba(0, 0, 0, 0.85);
  --nav-bg: rgba(9, 9, 9, 0.7);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

/* Skeleton Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Skeleton Base Styles - Minimalist Brand Aligned */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    rgba(74, 117, 255, 0.03) 25%,
    var(--bg-tertiary) 50%,
    rgba(74, 117, 255, 0.03) 75%,
    var(--bg-tertiary) 100%
  );
  background-size: 2000px 100%;
  animation: shimmer 2.5s infinite;
  border-radius: 6px;
}

body.dark-mode .skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    rgba(74, 117, 255, 0.05) 25%,
    var(--bg-tertiary) 50%,
    rgba(74, 117, 255, 0.05) 75%,
    var(--bg-tertiary) 100%
  );
  background-size: 2000px 100%;
}

.paynote.skeleton-loader {
  pointer-events: none;
  user-select: none;
}

.paynote.skeleton-loader .skeleton-text {
  height: 16px;
  margin: 4px 0;
}

.paynote.skeleton-loader .skeleton-text.short {
  width: 60%;
}

.paynote.skeleton-loader .skeleton-text.medium {
  width: 80%;
}

.paynote.skeleton-loader .skeleton-text.long {
  width: 100%;
}

.paynote.skeleton-loader .skeleton-text.tiny {
  width: 40%;
  height: 12px;
}

.paynote.skeleton-loader .skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.paynote.skeleton-loader .skeleton-button {
  height: 40px;
  width: 100px;
  border-radius: 6px;
}

.paynote.skeleton-loader .skeleton-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.paynote.skeleton-loader .noteActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.paynote.skeleton-loader .skeleton-value {
  height: 24px;
  width: 60px;
  border-radius: 6px;
}

/* Status Toast Notification */
.statusToast {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-40%);
  z-index: 100000;
  max-width: 320px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.statusToastIcon {
  font-size: 20px;
}

.statusToast-success {
  color: #10b981;
}

.statusToast-error {
  color: #ef4444;
}

.statusToast-info,
.statusToast-loading {
  color: #60a5fa;
}

.statusToast-loading {
  animation: spin 1.2s linear infinite;
}

.statusToastMessage {
  flex: 1;
  font-size: 13px;
}

.statusToastClose {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
}

.statusToastClose:hover {
  color: #e5e7eb;
}

/* Mobile: Center toast across full width */
@media screen and (max-width: 630px) {
  .statusToast {
    transform: translateX(-50%);
  }
}

/* Desktop: Center toast within mainContent area (accounting for sidebar) */
@media screen and (min-width: 631px) {
  .statusToast {
    left: calc(50% + 90px);
  }
}

/* Material Symbols font */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.rememberPK {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.checkBoxRemember {
  width: 3%;
}

.zapMenu {
  position: absolute;
  top: 0px;
  left: -160px;
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 24px;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
  z-index: 10000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
}

.zapMenuOption {
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.zapMenuOption:hover {
  background-color: var(--hover-bg);
}

.zapMenuCustom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.zapMenu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

#customZapInput {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%234a75ff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolygon points=%2713,2 4,14 11,14 10,22 19,10 12,10%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 16px 16px;
  color: #374151;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.025em;
  margin-bottom: 0;
}

#customZapInput:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 4px rgba(74, 117, 255, 0.1);
}

#customZapInput:hover {
  border-color: #d1d5db;
}

#customZapInput::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

#zapCommentInput {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: #374151;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 40px;
  letter-spacing: 0.025em;
  margin-bottom: 0;
}

#zapCommentInput:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 4px rgba(74, 117, 255, 0.1);
}

#zapCommentInput:hover {
  border-color: #d1d5db;
}

#zapCommentInput::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

#customZapButton,
#customAnonZapButton {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.025em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#customZapButton:hover,
#customAnonZapButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

#customZapButton:active,
#customAnonZapButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

/* Make anonZap button slightly different to show hierarchy */
#customAnonZapButton {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

#customAnonZapButton:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

@keyframes lightningEffect {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  25% {
    opacity: 0;
    transform: scale(1.1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  75% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.registrationTransition {
  animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.zapReaction {
  position: relative;
  transition: all 0.1s ease;
}

.zapReaction.newZap {
  animation: lightningEffect 0.6s ease-in-out;
}

.zapReaction:hover {
  transform: scale(1.8);
  z-index: 2;
}

.zapReaction:hover * {
  border-color: transparent;
}
.zapReaction:hover img {
  border: #ffffff61 0.1px solid;
  box-shadow: #00000014 0px 0px 2px 1px;
}

/* Ensure body can scroll when noteLoader content exceeds viewport */
.live #noteLoaderContainer {
  pointer-events: auto;
}

/* Live view specific styles */
.live {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.live .main-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  overflow: hidden;
  position: relative;
}

/* Jukebox body styles */
body.jukebox {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hide {
  display: none;
}

.bold {
  font-weight: 500;
}

#nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10001;
  --border-bottom-width: 1.5px;
  --border-color: var(--border-light);
  --border-left-width: 1.5px;
  --border-right-width: 1.5px;
  --border-style: solid;
  --border-top-width: 1.5px;
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
  background-color: var(--nav-bg);
  border-radius: 0 0 6px 6px;
  box-shadow: rgb(47 43 67 / 21%) -2px 3px 20px 0px;
  opacity: 1;
  transition: all 0.1s ease;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
}

#navInner,
#main,
#following {
  max-width: 800px;
  width: 100%;
  margin: auto;
  padding: 0 10px;
  box-sizing: border-box;
}

#containerInner {
  display: flex;
  max-width: 800px;
  width: 100%;
  margin: auto;
  padding: 15px 10px;
  box-sizing: border-box;
  gap: 32px;
  align-items: flex-start;
}

#sideNav {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 10px 0;
}

#mainContent {
  flex: 1;
  min-width: 0;
  width: 100%;
}

#sideNav #navInner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  max-width: none;
  align-items: flex-start;
}

#sideNav .sideNavLink {
  display: flex;
  color: var(--text-secondary);
  align-items: center;
  padding: 8px 4px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  transition: all 0.2s ease;
  width: auto;
  text-align: left;
  background: transparent;
  gap: 10px;
}

#sideNav .sideNavLink:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

#sideNav .sideNavLink.active {
  background: #4a75ff;
  color: white;
  font-weight: 500;
}

#sideNav .sideNavLink.disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

#sideNav .sideNavLink.disabled:hover {
  background: transparent;
  color: var(--text-tertiary);
}

/* Simple icons */
#sideNav .sideNavLink::after {
  content: '';
  width: 16px;
  height: 16px;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  order: -1;
}

#sideNav .sideNavLink:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z%27/%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M15 12a3 3 0 11-6 0 3 3 0 016 0z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27%3E%3Cpath d=%27M8.83008 5.92969L11.9981 2.75781L15.1699 5.92969%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M17.9443 8.82812L21.1162 11.9961L17.9443 15.168%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M5.90918 15.1719L2.7373 12.0039L5.90918 8.83202%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M11.8701 20.9284V18.1546C11.8701 14.7555 14.6256 12 18.0247 12H19.9963%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M12 4.34375L12 11.5156%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M3.69267 12L6.17464 12C7.63018 12 8.95383 12.6311 9.93848 13.6617%27 stroke=%27currentColor%27 stroke-width=%271.5%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(5)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(6)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5a2.25 2.25 0 002.25-2.25m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5a2.25 2.25 0 012.25 2.25v7.5%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(7)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(8)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(9)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z%27/%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M15 12a3 3 0 11-6 0 3 3 0 016 0z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(10)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M21 12a2.25 2.25 0 00-2.25-2.25H15a3 3 0 11-6 0H5.25A2.25 2.25 0 003 12m18 0v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 9m18 0V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v3%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(11)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 010 1.972l-11.54 6.347a1.125 1.125 0 01-1.667-.986V5.653z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(12)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.2v.2H12V8.25z%27/%3E%3C/svg%3E");
}

#sideNav .sideNavLink:nth-child(13)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke-width=%271.5%27 stroke=%27currentColor%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 d=%27M12 4.5v15m7.5-7.5h-15%27/%3E%3C/svg%3E");
}

/* Active state icon color */
#sideNav .sideNavLink.active::after {
  filter: brightness(0) invert(1);
}

/* Dark mode icon invert */
body.dark-mode #sideNav .sideNavLink::after {
  filter: invert(1);
}

body.dark-mode #sideNav .sideNavLink.active::after {
  filter: brightness(0) invert(1);
}

/* New Paynote button styling */
#sideNav .sideNavLink.cta {
  background: #4a75ff;
  color: white;
  font-weight: 500;
  margin-top: 28px;
  padding: 14px 24px 14px 16px;
  border-radius: 6px;
}

#sideNav .sideNavLink.cta:hover {
  background: #3b5bdb;
  color: white;
}

#sideNav .sideNavLink.cta::after {
  filter: brightness(0) invert(1);
}

#feeds {
  flex: 1;
  min-width: 0;
  min-height: 50vh;
}

#main {
  padding: 0;
}

#navInner {
  display: flex;
  justify-content: space-between;
  padding: 15px 10px;
  align-items: center;
}

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

#navActions {
  display: flex;
  align-content: center;
  align-items: center;
  column-gap: 15px;
}

.profileUserNameNav {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

#logo,
.brand {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}

.brand {
  color: #e2e2e2;
  text-align: center;
  margin-bottom: 20px;
}

body.dark-mode .brand {
  color: #e5e5e5;
}

#logo .logoPay {
  color: var(--text-primary);
}

#logo .logoMe {
  color: var(--text-primary);
  opacity: 0.12;
}

.brand .logoPay {
  color: #cecece;
}

body.dark-mode .brand .logoPay {
  color: #a0a0a0;
}

.brand .logoMe {
  color: var(--text-primary);
  opacity: 0.08;
}

body.dark-mode .brand .logoMe {
  opacity: 0.25;
}

#logo .version {
  color: var(--text-tertiary);
  opacity: 0.6;
  display: block;
  font-size: 10px;
  margin-bottom: -5px;
  margin-top: -4px;
}

#container {
  width: 100%;
  margin-top: 80px;
  padding: 0 30px 120px 30px;
  box-sizing: border-box;
}

#feedSelector {
  display: flex;
  justify-content: space-between;
  max-width: 560px;
  margin: auto;
}

a.feedSelectorLink:visited,
a.feedSelectorLink {
  border-bottom: 1px solid var(--border-light);
  width: 33.333%;
  text-align: center;
  padding: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-size: 12px;
  color: #ccc;
}

a.feedSelectorLink.active {
  border-bottom: 2px solid #4b90ff;
  color: #4b90ff;
  font-weight: 600;
}

.paynote {
  display: flex;
  padding: 20px 30px 30px 20px;
  margin-top: 30px;
  column-gap: 15px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  --border-bottom-width: 1.5px;
  --border-color: var(--border-light);
  --border-left-width: 1.5px;
  --border-right-width: 1.5px;
  --border-style: solid;
  --border-top-width: 1.5px;
  border-radius: 6px;
  box-shadow: rgb(47 43 67 / 21%) -2px 3px 20px 0px;
  opacity: 1;
  transition: all 0.3s ease;
}

.paynote a {
  text-decoration: none;
}

/*.paynote:hover {
  background: var(--hover-bg);
}*/

.paynote.has-open-dropdown {
  z-index: 9999;
  position: relative;
}

.label.noteDate {
  font-size: 12px;
}

.forwardZap .paynote {
  background: #f5f8fd;
}

.noteProfileImg {
  width: 8%;
  flex-shrink: 0;
}

.userImg {
  border-radius: 300px;
  box-shadow: #00000014 0px 0px 0px 1px;
  border: 1px solid #ffffff55;
}

.zapReaction {
  position: relative;
  transition: all 0.1s ease;
}

.zapReaction:hover {
  transform: scale(1.8);
  z-index: 2;
}

.zapReaction:hover * {
  border-color: transparent;
}
.zapReaction:hover img {
  border-color: transparent;
  box-shadow: #00000014 0px 0px 2px 1px;
}

.zapReactionAmount {
  position: absolute;
  font-size: 6px;
  background: #4b90ff;
  color: #fff;
  padding: 2px;
  bottom: 3px;
  left: 10px;
  z-index: 1;
  border: #ccc solid 1px;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: 0.03rem;
}

.zapReactionAmount:hover {
  background: #1c73ff;
}

.zapReaction a:visited {
  color: #fff;
}

.zapReactionTooltip {
  position: absolute;
  bottom: 80%;
  left: calc(100% + -20px);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  z-index: 1000;
}

/* Speech bubble tail pointing left */
.zapReactionTooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 5px 0;
  border-color: transparent var(--card-bg) transparent transparent;
}

.zapReactionTooltip::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 6px 0;
  border-color: transparent var(--border-light) transparent transparent;
}

.zapReaction:hover .zapReactionTooltip {
  opacity: 1;
  visibility: visible;
}

body.dark-mode .zapReactionTooltip {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .zapReactionTooltip::before {
  border-color: transparent var(--card-bg) transparent transparent;
}

body.dark-mode .zapReactionTooltip::after {
  border-color: transparent var(--border-color) transparent transparent;
}

.noteProfileImg a {
  display: block;
  cursor: pointer;
}

.noteProfileImg img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  aspect-ratio: 1;
  font-size: 9px;
  text-align: center;
  display: block;
  background: #cad6fa;
  color: white;
}

.noteData {
  width: 90%;
  flex: 1;
  min-width: 0;
}

.noteHeader {
  display: flex;
  justify-content: space-between;
  margin-top: 0px;
}

.noteAuthor {
  flex: 1;
  min-width: 0;
}

.noteDisplayName {
  font-weight: 700;
}

.noteAuthorLink {
  color: var(--text-primary);
}
.noteAuthorLink:visited {
  color: var(--text-primary);
}

.noteAuthor .label a {
  color: #ccc;
  font-size: 12px;
  word-break: break-all;
}

body.dark-mode .noteAuthor .label a {
  color: #888;
}

.noteAuthor .label .material-symbols-outlined {
  font-size: 12px;
  margin-top: -3px;
  margin-right: 3px;
}

.main-icon {
  font-weight: 900;
  color: #afafaf;
}

.noteContent {
  font-size: 18px;
  font-weight: 300;
  word-break: break-word;
  letter-spacing: 0.03rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 4px 0px;
  margin: 16px 0px;
  line-height: 1.5;
}

.noteContent:hover {
  background-color: rgba(74, 117, 255, 0.01);
}

.noteContent img {
  width: 100%;
  margin-top: 10px;
  filter: brightness(0.98);
}

/* Ensure links within noteContent maintain their styling and behavior */
.noteContent a {
  color: #4a75ff;
  text-decoration: none;
  cursor: pointer;
}

.noteContent a:visited {
  color: #4a75ff;
}

.noteContent a:hover {
  text-decoration: underline;
  background-color: transparent;
}

.noteValues {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  align-items: flex-start;
  gap: 10px;
}

.zapUses {
  display: flex;
  gap: 4px;
  line-height: 1;
  align-items: baseline;
}

.zapMin,
.zapMax {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.zapMinContainer,
.zapMaxContainer,
.zapUsesContainer {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 3px;
}

.zapMinContainer {
  order: 1;
}

.zapUsesContainer {
  order: 2;
  text-align: center;
  display: flex;
  align-items: flex-end;
}

/* Center uses container when max is present */
.noteValues:has(.zapMaxContainer) .zapUsesContainer {
  align-items: center;
}

.zapMaxContainer {
  order: 3;
  display: flex;
  align-items: flex-end;
}

.zapMinLabel,
.zapMaxLabel,
.zapUsesLabel {
  margin: 3px 0;
  color:var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

.zapPayer {
  display: flex;
  margin: 20px 0 20px 0;
  border: 1px solid var(--border-light);
  padding: 15px 10px;
  border-radius: 6px;
  background: var(--card-bg);
  align-items: center;
  color: var(--text-secondary);
  font-weight: 300;
  word-break: break-word;
  justify-content: space-between;
  column-gap: 9px;
}

.zapPayerInner {
  display: flex;
  align-items: center;
}

.zapPayer img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.zapPayer .userName {
  /* width: 100%; */
  text-align: center;
  font-weight: 600;
  margin-left: 10px;
  color: var(--text-primary);
}

/* Total Zaps Accounting */
.totalZapsAccounting {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 20px 0 20px 0;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.totalZapsCount,
.totalZapsAmount,
.totalZapsGoal {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.totalZapsNumber {
  font-weight: 400;
  font-size: 20px;
  color: var(--text-primary);
}

.totalZapsLabel {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-tertiary);
}

.zapTotalLabel {
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  width: 100%;
}

.totalZapsSeparator {
  color: var(--border-color);
  font-size: 16px;
  font-weight: 300;
}

/* Zap Goal Progress Bar - appears inside totalZapsAccounting */
.zapGoalBar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.zapGoalBarFill {
  height: 100%;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

body.dark-mode .zapGoalBarFill {
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
}

.noteActionsReactions {
  display: flex;
  position: relative;
  justify-content: space-between;
  margin-top: 20px;
}

.noteZapReactions {
  display: flex;
  column-gap: 6px;
  max-width: 240px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.noteHeroZaps.noteZapReactions {
  max-width: 1240px;
}

.noteZapReactions img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.noteHeroZaps.noteZapReactions img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.noteHeroZaps {
  border-top: 1px solid var(--border-light);
  padding-bottom: 10px;
  padding-top: 20px;
}

.noteHeroZaps .zapReactionAmount {
  font-size: 10px;
  left: 25px;
  bottom: -2px;
}

.noteActionsReactions .noteActions {
  display: flex;
  column-gap: 10px;
  font-size: 10px;
  justify-content: flex-end;
}

.noteAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.noteAction:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.noteAction.disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.noteAction.disabled:hover {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
}

.noteAction .material-symbols-outlined {
  font-size: 18px;
}

.noteAction .material-symbols-outlined.disabled {
  color: var(--text-tertiary);
}

.material-symbols-outlined {
  font-size: 18px;
  vertical-align: middle;
  /* color: #a3a3a3; */
  font-weight: 400;
}

a {
  color: #4a75ff;
  text-decoration: none;
}
a:visited {
  color: #4a75ff;
}

.label,
legend {
  color: #919191;
  font-size: 14px;
  line-height: 1;
}

.uppercase {
  text-transform: uppercase;
}

a.cta,
button.cta {
  width: 100%;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 6px;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
  font-family: 'Inter', sans-serif;
}

a.cta:hover,
button.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

a.cta:active,
button.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

.paynote .cta {
  display: block;
  /* color: #4a75ff; */
  /* background: #e6f0ff; */
  /* border: 1px solid #4a75ff; */
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  transition: all 0.1s ease;
  box-shadow: 0 1px 0px #00000000;
  font-weight: 100;
  /* letter-spacing: 0.08rem; */
  font-weight: 600;
  border: #b2c4ff 1px solid;
  margin: 10px 0px 20px 0px;
}

.paynote .cta:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px #00000024;
}

.noteMainCTA.disabled {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  box-shadow: none;
  opacity: 0.6;
}

.paynote .cta.disabled:hover {
  transform: scale(1);
  box-shadow: none;
  background: var(--bg-tertiary);
}

a.noteMainCTA.cta.disabled.red,
button.noteMainCTA.cta.disabled.red,
.cta.disabled.red {
  background: #c80000;
  opacity: 1;
  filter: unset;
  color: #ffffffba;
  border: none;
  cursor: none;
}

#invoiceQR,
#nip05QR {
  display: block;
  margin: auto;
  max-width: 95%;
  max-height: 95%;
  margin-bottom: 10px;
}

/* New Note Form */

.overlayContainer {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 80px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.overlayInner {
  width: 95%;
  max-width: 500px;
  padding: 40px 35px;
  box-sizing: border-box;
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  animation: slideUp 0.3s ease-out;
  margin: 20px 0;
  min-height: fit-content;
}

body.dark-mode .overlayInner {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zapModal {
  max-width: 400px;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

#viewJSON.overlayContainer {
  align-items: center;
  justify-content: center;
}

#viewJSON .overlayInner {
  max-width: 1000px;
}

/* Password prompt overlay - always centered, prevent layout shift */
#passwordPromptOverlay.overlayContainer {
  align-items: center;
  justify-content: center;
  /* Ensure consistent positioning from the start */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* NIP-05 Purchase overlay - always centered, prevent layout shift */
#nip05PurchaseOverlay.overlayContainer {
  align-items: center;
  justify-content: center;
}

#nip05PurchaseOverlay .overlayInner {
  transform: none !important;
  animation: none !important;
}

/* Disable slideUp animation for password prompt to prevent jump */
#passwordPromptOverlay .overlayInner {
  animation: none;
  transform: none;
  /* Ensure no transform is applied initially */
  will-change: auto;
}

#noteJSON {
  width: 100%;
  /* background: #f3f3f3; */
  /* padding: 10px; */
  box-sizing: border-box;
  white-space: pre-wrap; /* Since CSS 2.1 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  max-height: 70vh;
  overflow: scroll;
  padding-bottom: 40px;
}

#newPayNoteForm {
  display: none;
}

/* Keep flex layout for #viewJSON to prevent layout shift - it always uses display: flex via inline styles */

.formField,
textarea,
input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.formFieldGroup {
  display: flex;
  column-gap: 15px;
}

.formField label,
.formField legend {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #374151;
  font-weight: 600;
}

body.dark-mode .formField label,
body.dark-mode .formField legend {
  color: var(--text-secondary);
}

.summaryOptions {
  padding-bottom: 5px;
  text-transform: uppercase;
  font-size: 11px;
}

.formField legend,
.formField summary {
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

body.dark-mode .formField legend,
body.dark-mode .formField summary {
  color: var(--text-secondary);
}

.formField summary:hover {
  color: #374151;
}

body.dark-mode .formField summary:hover {
  color: var(--text-primary);
}

details {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  background: #f9fafb;
  transition: all 0.2s ease;
}

body.dark-mode details {
  border-color: var(--border-color);
  background: var(--bg-secondary);
}

details:hover {
  border-color: #d1d5db;
  background: #fff;
}

body.dark-mode details:hover {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}

details[open] {
  border-color: #4a75ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
}

body.dark-mode details[open] {
  border-color: #4a75ff;
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.2);
}

details summary {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶';
  margin-right: 8px;
  transition: transform 0.2s ease;
  color: #4a75ff;
}

details[open] summary::before {
  transform: rotate(90deg);
}

.formField.disabled {
  opacity: 0.3;
}

.formField.formSelector {
  display: flex;
  padding: 0;
  border: 0;
  margin: 0 0 20px 0;
  gap: 20px;
}

.formField.formSelector div {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.formField.formSelector div:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.formField.formSelector div:has(input:checked) {
  border-color: #4a75ff;
  background: #f0f4ff;
}

.formField.formSelector div.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9fafb;
}

.formField.formSelector div.disabled:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.formField.formSelector input {
  width: unset;
  padding: 0;
  margin: 0 8px 0 0;
  accent-color: #4a75ff;
}

.formField.formSelector label {
  margin: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

body.dark-mode .formField.formSelector div {
  border-color: var(--border-color);
  background: var(--bg-secondary);
}

body.dark-mode .formField.formSelector div:hover {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}

body.dark-mode .formField.formSelector div:has(input:checked) {
  border-color: #4a75ff;
  background: rgba(74, 117, 255, 0.15);
}

body.dark-mode .formField.formSelector div.disabled {
  opacity: 0.5;
  background: var(--bg-secondary);
}

body.dark-mode .formField.formSelector div.disabled:hover {
  border-color: var(--border-color);
  background: var(--bg-secondary);
}

body.dark-mode .formField.formSelector label {
  color: var(--text-primary);
}

/* Payment Amount Group - dropdown with inline inputs */
.paymentAmountGroup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.paymentTypeSelect {
  flex: 0 0 auto;
  width: 100px;
  margin-bottom: 0;
}

.paymentTypeSelect .label {
  margin-bottom: 8px;
}

.paymentTypeDropdown {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23374151%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.paymentTypeDropdown:hover {
  border-color: #d1d5db;
}

.paymentTypeDropdown:focus {
  outline: none;
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
}

body.dark-mode .paymentTypeDropdown {
  border-color: var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23e5e5e5%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

body.dark-mode .paymentTypeDropdown:hover {
  border-color: var(--border-light);
}

body.dark-mode .paymentTypeDropdown:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.2);
}

.paymentAmountInput {
  flex: 0 1 auto;
  min-width: 150px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.paymentAmountInput .label {
  margin-bottom: 8px;
}

.paymentAmountField {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.paymentAmountField:hover {
  border-color: #d1d5db;
}

.paymentAmountField:focus {
  outline: none;
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
}

body.dark-mode .paymentAmountField {
  border-color: var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
}

body.dark-mode .paymentAmountField:hover {
  border-color: var(--border-light);
}

body.dark-mode .paymentAmountField:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.2);
}

#goalInterface {
  margin-bottom: 10px;
}

#zapGoal {
  margin-bottom: 10px;
}

/* All form inputs in new paynote overlay */
#newKind1 input,
#newKind1 textarea,
#newKind1 select {
  margin-bottom: 10px;
}

/* Uses label margin-top */
#newKind1 label[for="zapUses"] {
  margin-top: 10px;
}

.paymentAmountInput .tagName {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media screen and (max-width: 630px) {
  .paymentAmountGroup {
    flex-direction: column;
    align-items: stretch;
  }
  
  .paymentTypeSelect,
  .paymentAmountInput {
    min-width: 100%;
    margin-bottom: 15px;
  }
  
  .paymentAmountInput {
    margin-bottom: 0;
  }
}

legend {
  padding: 0;
}

#cancelNewNote,
#cancelLogin,
#cancelLoggedin,
#cancelNip05Name,
#cancelNip05Payment,
#cancelNip05Success,
#titleSignin,
#titleScanner,
#stopScanner,
#closeInvoiceOverlay,
#qrcodeTitle {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

#cancelNewNote:hover,
#cancelLogin:hover,
#cancelLoggedin:hover,
#cancelNip05Name:hover,
#cancelNip05Payment:hover,
#cancelNip05Success:hover,
#titleSignin:hover,
#titleScanner:hover,
#stopScanner:hover,
#closeInvoiceOverlay:hover,
#qrcodeTitle:hover {
  color: #374151;
}

#logoutButton {
  width: 100%;
  display: block;
  margin-top: 30px;
}

/* Camera Controls - Brand Style */
.camera-controls-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

/* Zoom Control */
.camera-zoom-control {
  width: 100%;
  position: relative;
}

.zoom-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

.zoom-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.camera-zoom-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 34px;
  background: var(--bg-primary);
  outline: none;
  opacity: 1;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  box-shadow: inset #00000008 0px 2px 4px 0px;
  cursor: pointer;
}

.camera-zoom-slider:hover {
  opacity: 1;
}

.camera-zoom-slider::-webkit-slider-thumb {
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4a75ff;
  cursor: pointer;
  border-radius: 400px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 2px 5px;
}

.camera-zoom-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4a75ff;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 2px 5px;
}

.zoom-value-display {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: #e5e5e5;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: none;
  border: none;
  box-shadow: none;
}

/* Camera Controls Bar */
.camera-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

.camera-control-button-wrapper {
  position: relative;
}

.camera-control-button {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #ffffff;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.camera-control-button:hover {
  background: #f5f5f5;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: none;
}

.camera-control-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.camera-control-button.active {
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  border: none;
  color: #ffffff;
  box-shadow: none;
}

.camera-control-button.active:hover {
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
  box-shadow: none;
}

.camera-icon {
  font-size: 24px !important;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Camera Picker Menu */
.camera-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: transparent;
}

.camera-picker-menu {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: none;
  border-radius: 6px;
  box-shadow: none;
  min-width: 280px;
  max-width: 320px;
  overflow: hidden;
  z-index: 9999;
  animation: slideUp 0.2s ease;
}

.camera-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid var(--border-light);
}

.camera-picker-item:last-child {
  border-bottom: none;
}

.camera-picker-item:hover {
  background: var(--hover-bg);
}

.camera-picker-item:active {
  background: var(--bg-tertiary);
}

.camera-picker-item.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.camera-picker-item.active .check-icon {
  color: #4a75ff;
}

.camera-picker-item .material-symbols-outlined:first-child {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
}

.camera-picker-item.active .material-symbols-outlined:first-child {
  color: var(--text-primary);
}

.camera-picker-label {
  flex: 1;
  font-size: 15px;
}

.check-icon {
  font-size: 20px !important;
  width: 20px;
  height: 20px;
  opacity: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Dark mode adjustments */
body.dark-mode .zoom-slider-wrapper,
body.dark-mode .camera-controls-bar {
  background: var(--card-bg);
  border-color: var(--border-color);
}

body.dark-mode .camera-control-button {
  background: var(--card-bg);
}

body.dark-mode .camera-control-button:hover {
  background: var(--hover-bg);
}

body.dark-mode .camera-picker-menu {
  background: var(--card-bg);
  border-color: var(--border-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .camera-controls-container {
    margin-top: 16px;
    gap: 8px;
  }

  .zoom-slider-wrapper {
    padding: 10px 14px;
  }

  .camera-controls-bar {
    padding: 10px;
    gap: 10px;
  }

  .camera-control-button {
    width: 44px;
    height: 44px;
  }

  .camera-icon {
    font-size: 22px !important;
    width: 22px;
    height: 22px;
  }

  .camera-picker-menu {
    min-width: 260px;
    max-width: 90vw;
  }

  .camera-picker-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

#reader {
  border: none;
  border-radius: 6px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  background-color: #ffffff; /* White background for contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Ensure content stays within bounds */
  width: 100%;
  aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
  position: relative;
}

#reader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Make QR scanning square corners thinner */
#reader svg,
#reader svg path,
#reader svg line,
#reader svg rect,
#reader .html5-qr-code svg,
#reader .html5-qr-code svg path,
#reader .html5-qr-code svg line,
#reader .html5-qr-code svg rect,
#reader canvas + svg,
#reader canvas + svg path,
#reader canvas + svg line,
#reader canvas + svg rect {
  stroke-width: 1px !important;
}

#reader .html5-qr-code canvas,
#reader canvas {
  border: none;
}

textarea,
input {
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}

textarea:focus,
input:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
  background: #fafbff;
}

body.dark-mode textarea,
body.dark-mode input,
body.dark-mode input[type='text'],
body.dark-mode input[type='number'],
body.dark-mode input[type='email'],
body.dark-mode input[type='password'] {
  background: var(--input-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

body.dark-mode textarea::placeholder,
body.dark-mode input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

body.dark-mode textarea:focus,
body.dark-mode input:focus {
  background: var(--input-bg);
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.2);
}

body.dark-mode textarea:hover,
body.dark-mode input:hover {
  border-color: var(--border-light);
}

textarea:hover,
input:hover {
  border-color: #d1d5db;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

#payNoteContent {
  margin-bottom: 0;
}

.payNoteContentButtons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.previewButton,
.uploadButton {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark-mode .previewButton,
body.dark-mode .uploadButton {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-mode .previewButton:hover,
body.dark-mode .uploadButton:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-light);
}

.previewButton:hover,
.uploadButton:hover {
  background-color: #e5e5e5;
  border-color: #ccc;
}

.previewPanel {
  margin-top: 12px;
  padding: 16px;
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 100px;
  max-height: 300px;
  overflow: auto;
}

body.dark-mode .previewPanel {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.previewLabel {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

body.dark-mode .previewLabel {
  color: var(--text-secondary);
}

.previewContent {
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
}

body.dark-mode .previewContent {
  color: var(--text-primary);
}

/* Mention and suggestion dropdowns */
.suggestionDropdown {
  position: absolute;
  margin-top: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

body.dark-mode .suggestionDropdown {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.suggestionItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  background: #fff;
}

body.dark-mode .suggestionItem {
  background: var(--card-bg);
}

.suggestionItem:hover,
.suggestionItem.active {
  background: #f3f4f6;
}

body.dark-mode .suggestionItem:hover,
body.dark-mode .suggestionItem.active {
  background: var(--bg-tertiary);
}

.suggestionAvatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee;
}

body.dark-mode .suggestionAvatar {
  background: var(--bg-tertiary);
}

.suggestionInfo {
  font-size: 13px;
}

.suggestionName {
  font-weight: 500;
  color: #111827;
}

body.dark-mode .suggestionName {
  color: var(--text-primary);
}

.suggestionNpub {
  color: #6b7280;
}

body.dark-mode .suggestionNpub {
  color: var(--text-tertiary);
}

.suggestionNoResults {
  padding: 12px 8px;
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
}

body.dark-mode .suggestionNoResults {
  color: var(--text-tertiary);
}

.tagName {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

body.dark-mode .tagName {
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder {
  color: #d1d5db;
}

.noteNIP05.label .unverified {
  font-size: 10px;
  font-weight: bold;
  color: #de0000;
}

/* Lightning address validation icon animation */
.noteLNAddress .validating-icon {
  animation: spin 1.5s linear infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  width: 1em;
  height: 1em;
}

/* NIP-05 validation icon animation */
.noteNIP05 .validating-icon,
.profileLightningLink .validating-icon {
  animation: spin 1.5s linear infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  width: 1em;
  height: 1em;
}

.noteLNAddress.label .unverified {
  font-size: 10px;
  font-weight: bold;
  color: #9d4d4d;
}

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-content {
  position: absolute;
  background: var(--card-bg);
  min-width: 260px;
  overflow: auto;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  right: -10px;
  top: 100%;
  margin-top: -32px;
  z-index: 10000;
  padding: 24px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px 0;
  position: relative;
}

.dropdown-content a:hover {
  background-color: var(--hover-bg);
  color: #4a75ff;
  transform: translateX(4px);
}

.dropdown-content .cta {
  color: #ffffff;
  padding: 14px 20px;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.025em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
  margin: 8px 0;
  text-align: center;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-content .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

.dropdown-content .cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

.dropdown-content .cta.disabled {
  color: #9ca3af;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
}

.dropdown-content .cta.disabled:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* Add visual separation between buttons and links */
.dropdown-content .cta + a {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.originZap .originZap {
  max-width: 300px;
  height: 30px;
}
.originZap .zapReaction {
  position: relative;
}

.originZap .zapReaction a img {
  width: 30px;
}

.originZap .noteProfileImg {
  position: absolute;
  width: 5%;
  left: 20px;
  bottom: -6px;
}

.originZap .noteProfileImg img {
  height: 20px;
  width: 20px;
}

.originZap {
  position: relative;
}

.zapAmountInput {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  width: 100%;
}

.zapAmountField {
  margin-bottom: 18px;
  width: 100%;
  font-size: 30px;
  font-weight: 300;
  text-align: center;
  padding: 8px 12px 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

/* Hide number input arrows */
.zapAmountField::-webkit-outer-spin-button,
.zapAmountField::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.zapAmountField[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.zapAmountField:focus {
  border-color: #4a75ff;
}

.zapAmountSuffix {
  position: absolute;
  right: 16px;
  bottom: 32px;
  font-size: 20px;
  font-weight: 200;
  color: var(--text-primary);
  opacity: 0.5;
  pointer-events: none;
}

.zapSlider {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--bg-primary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 10px;
}

.zapSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a75ff;
  cursor: pointer;
}

.zapSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4a75ff;
  cursor: pointer;
  border: none;
}

.zapSliderVal {
  width: 100%;
  text-align: center;
  font-weight: 300;
  font-size: 22px;
  margin-bottom: 10px;
}

.zapSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: var(--bg-primary);
  outline: none;
  opacity: 1;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  box-shadow: inset #00000008 0px 2px 4px 0px;
}

.zapSlider:hover {
  opacity: 1;
}

.zapSlider::-webkit-slider-thumb {
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4a75ff;
  cursor: pointer;
  border-radius: 400px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 2px 5px;
}

.zapSlider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4a75ff;
  cursor: pointer;
  border-radius: 6px;
}

.currentUserImg {
  width: 30px;
  height: 30px;
  object-fit: cover;
  margin-bottom: -5px;
}

.disabled {
  filter: saturate(0);
  opacity: 0.3;
}

@media screen and (max-width: 630px) {
  #nav {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    bottom: auto;
    z-index: 10001;
    --border-bottom-width: 1.5px;
    --border-color: var(--border-light);
    --border-left-width: 1.5px;
    --border-right-width: 1.5px;
    --border-style: solid;
    --border-top-width: 1.5px;
    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
    background-color: var(--nav-bg);
    border-radius: 0 0 6px 6px;
    box-shadow: rgb(47 43 67 / 21%) 0px 3px 20px 0px;
    opacity: 1;
    transition: all 0.1s ease;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
  }

  #container {
    margin-top: 80px;
    padding-left: 0;
    padding-right: 0;
  }

  #navInner {
    padding: 15px 0;
  }

  #mainContent {
    width: 100%;
  }

  #feedSelector {
    padding: 10px;
  }

  /* Hide username on mobile */
  #login .profileUserNameNav {
    display: none;
  }

  #containerInner {
    flex-direction: column;
    gap: 0;
  }

  #sideNav {
    width: 100%;
    position: fixed;
    top: 60px;
    left: -100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    z-index: 10001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    order: 2;
  }

  #sideNav.open {
    left: 0;
  }

  #sideNav #navInner {
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    padding: 16px 20px;
    margin-bottom: 0;
    align-items: stretch;
    height: 100%;
    overflow-y: auto;
  }

  #sideNav .sideNavLink {
    flex: none;
    justify-content: flex-start;
    padding: 10px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    gap: 10px;
    background: transparent;
  }

  #sideNav .sideNavLink.cta {
    margin-top: 12px;
    padding: 12px 24px 12px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
  }

  #sideNav .sideNavLink::after {
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
  }

  #feeds {
    order: 1;
    width: 100%;
  }

  #main {
    padding: 0 10px;
  }

  #mainContent {
    width: 100%;
    flex: none;
  }

  /* Mobile font sizes */
  .noteValues {
    font-size: 16px;
  }

  .zapMaxLabel,
  .zapMinLabel {
    font-size: 10px;
  }

  .noteAuthorLink {
    font-size: 14px;
  }

  /* Hamburger menu button */
  .hamburger {
    display: block;
    position: static;
    z-index: 10002;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    margin-right: 0px;
  }

  .hamburger span {
    display: block;
    width: 19px;
    height: 1.5px;
    background: var(--text-secondary);
    margin: 4px 0;
    transition: 0.3s;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Mobile Floating Action Button */
  .mobile-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4a75ff;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 117, 255, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .mobile-fab:hover {
    background: #3b5bdb;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(74, 117, 255, 0.5);
  }

  .mobile-fab:active {
    transform: scale(0.95);
  }
}

/* Hide hamburger on desktop */
@media screen and (min-width: 631px) {
  .hamburger {
    display: none;
  }

  .mobile-fab {
    display: none;
  }
}

/* Tablet and mobile: compact layout with profile in header */
@media screen and (max-width: 768px) {
  .paynote {
    padding: 16px 24px 24px 24px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px 12px;
    grid-template-areas:
      'profile header'
      'content content';
  }

  /* Position profile image in grid */
  .noteProfileImg {
    grid-area: profile;
    width: auto;
    align-self: start;
    z-index: 1;
    position: relative;
  }

  .noteProfileImg img {
    width: 36px;
    height: 36px;
  }

  .noteData {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 12px;
    width: 100%;
  }

  .noteHeader {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    margin-top: 0;
    padding-left: 35px;
    z-index: 0;
    position: relative;
  }

  .noteData > *:not(.noteHeader) {
    grid-column: 1 / -1;
  }

  .noteContent {
    font-size: 14px;
  }

  .zapPayer {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
  }

  .totalZapsAccounting {
    flex-wrap: wrap;
    padding: 16px 0px;
    margin: 12px 0 6px 0;
  }

  .noteActionsReactions {
    flex-direction: column;
    gap: 20px;
  }

  .noteZapReactions {
    max-width: 1000px;
  }

  .noteActionsReactions .noteActions {
    justify-content: flex-end;
  }

  .totalZapsNumber {
    font-size: 20px;
  }

  .totalZapsLabel {
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .paynote {
    padding: 14px 20px 20px 20px;
    margin-top: 20px;
  }

  .noteContent {
    font-size: 13px;
  }

  .hideOnMobile {
    display: none;
  }

  /* Mobile form improvements */
  .overlayContainer {
    padding: 10px;
    padding-bottom: 100px;
  }

  .overlayInner {
    width: 95%;
    max-width: none;
    padding: 30px 20px;
    margin: 10px 0;
    border-radius: 6px;
  }

  .formFieldGroup {
    flex-direction: column;
    gap: 15px;
  }

  .formField.formSelector {
    flex-direction: column;
    gap: 12px;
  }

  .formField.formSelector div {
    padding: 16px 20px;
  }

  details {
    padding: 12px;
  }
}

/* Profile Page Styles */
.profilePage {
  max-width: 800px;
  margin: 0 auto;
}

.profilePageTitle {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.profileSection {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.profileUserInfo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* Profile Preview Styles */
#profilePreview {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-tertiary);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-size: 12px;
}

.profileBanner {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

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

.profileBannerPlaceholder {
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
}

body.dark-mode .profileBannerPlaceholder {
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
}

.profileUploadButton {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

.profileUploadButton:disabled {
  cursor: wait;
  opacity: 0.7;
}

.profileInlineLink {
  background: none;
  border: none;
  color: #4a75ff;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.profileCloseButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  line-height: 1;
}

#profilePreview .profileUserInfo {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  gap: 15px;
  margin-bottom: 0;
}

#profilePreview .profileAvatar {
  width: 100%;
  height: 100%;
  border-radius: 10000px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  margin-top: -40px;
  margin-right: 0px;
  border: 1px solid #e9ecef;
  max-width: 120px;
}

.profileAvatarImage {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
}

.profileAvatarFallback {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  background-image: url(/images/gradient_color.gif);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#profilePreview .profileUserDetails h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 600;
}

#profilePreview .profileUserDetails p {
  margin: 0 0 8px 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
}

.profileWebsite {
  color: #4a75ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: -5px;
  display: block;
}

.profileWebsite:hover {
  color: #3a5ce6;
  text-decoration: underline;
}

.profileLoading {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.profileLoading p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.profileAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4a75ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.profileUserDetails {
  width: 100%;
}

.profileUserDetails h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

body.dark-mode .profileUserDetails h2 {
  color: #ffffff;
}

.profileUserDetails p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.profilePublicKey label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.profilePublicKey code {
  font-size: 12px;
  background-color: #f1f3f4;
  padding: 8px;
  border-radius: 6px;
  display: block;
  word-break: break-all;
  color: #333;
}

/* Profile Detail Items */
.profileDetails {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.profileDetailItem {
  margin-bottom: 20px;
}

.profileDetailItem label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.profileDetailValue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 8px 8px 8px 12px;
  border-radius: 6px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-sizing: border-box;
}

.profileDetailValue code {
  font-size: 13px;
  background-color: var(--bg-tertiary);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  display: block;
  word-break: break-all;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  flex: 1;
  min-width: 200px;
}

.profilePublicKey {
  font-size: 14px;
  color: #333;
  font-family: inherit;
  flex: 1;
  word-break: break-all;
}

.profileButtonGroup {
  display: flex;
  gap: 8px;
}

.profileEditButton {
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.profileEditButton:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
  color: #333;
}

body.dark-mode .profileEditButton {
  color: #ffffff;
  border: 1px solid #6f6f6f;
  background: #4e4e4e;
}

body.dark-mode .profileEditButton:hover {
  background-color: #5e5e5e;
  border-color: #7f7f7f;
}

.profileQRContainer {
  margin: 0 auto 16px auto;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.profileCopyButton {
  background-color: #e6e6e6;
  color: #666;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin: 0;
}

.profileCopyButton:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
  color: #333;
}

.profileCopyButton.primary {
  background: #4a75ff;
  color: #fff;
  border-color: #4a75ff;
}

.profileCopyButton.primary:hover {
  background: #3b5bdb;
  border-color: #3b5bdb;
  color: #fff;
}

.profileLightningLink {
  color: #4a75ff;
  text-decoration: none;
  font-size: 13px;
}

.profileLightningLink:hover {
  text-decoration: underline;
}

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

.profileBuyNip05Button {
  padding: 8px 16px;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.025em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
}

.profileBuyNip05Button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

.profileBuyNip05Button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

/* NIP-05 Purchase Overlay Styles - Brand Aligned */
.nip05PurchaseStep {
  padding: 0;
}

.nip05PurchaseDescription {
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.nip05PurchaseForm {
  margin-bottom: 24px;
}

.nip05PurchaseForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.nip05PurchaseForm input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.nip05PurchaseForm input:focus {
  outline: none;
  border-color: #4a75ff;
}

.nip05PurchaseForm input.error {
  border-color: #dc3545;
}

.errorMessage {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

.validatingMessage {
  color: #4a75ff;
  font-size: 14px;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

.nip05PurchaseActions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

.nip05PaymentQR {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.nip05PaymentStatus {
  text-align: center;
  margin: 24px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paymentPending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #4a75ff;
}

.paymentPending .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid #4a75ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.paymentSuccess {
  color: #28a745;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.paymentError {
  color: #dc3545;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.processingSpinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.processingSpinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-tertiary);
  border-top: 4px solid #4a75ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.successMessage {
  text-align: center;
  padding: 20px;
}

.successIcon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 16px;
}

.successMessage h3 {
  margin: 16px 0;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.registeredNip05 {
  font-size: 18px;
  font-weight: 600;
  color: #4a75ff;
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.successNote {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
}

.buttonPrimary {
  padding: 14px 24px;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
}

.buttonPrimary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

.buttonPrimary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

.buttonPrimary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.buttonSecondary {
  padding: 14px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.buttonSecondary:hover {
  background: var(--hover-bg);
  border-color: var(--border-light);
}

/* Overlay Header Styles */
.overlayHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.overlayHeader h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.overlayCloseButton {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.overlayCloseButton:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

/* Dark mode support for NIP-05 overlay */
body.dark-mode .nip05PaymentQR {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

body.dark-mode .registeredNip05 {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.profileNip05 {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Responsive styles for profile details */
@media screen and (max-width: 630px) {
  .profileDetailValue {
    flex-direction: column;
    align-items: baseline;
  }

  .profileDetailValue code {
    min-width: auto;
    margin-bottom: 10px;
  }

  .profileCopyButton {
    align-self: flex-start;
  }
}

.profileStatsSection {
  margin-bottom: 30px;
}

.profileStatsTitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

body.dark-mode .profileStatsTitle {
  color: #fff;
}

.profileStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.profileStatCard {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.profileStatValue {
  font-size: 24px;
  font-weight: 600;
  color: #4a75ff;
  margin-bottom: 5px;
}

.profileStatLabel {
  font-size: 14px;
  color: var(--text-secondary);
}

.profileSettingsSection {
  margin-bottom: 0;
}

.profileSettingsTitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.profileSettingsCard {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.profileFormField {
  margin-bottom: 15px;
}

.profileFormField label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.profileFormInput {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.profileFormInput:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
  background: var(--bg-secondary);
}

.profileFormInput:hover {
  border-color: var(--border-color);
}

.profileFormTextarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  min-height: 80px;
  resize: vertical;
}

.profileFormTextarea:focus {
  border-color: #4a75ff;
  box-shadow: 0 0 0 3px rgba(74, 117, 255, 0.1);
  background: var(--bg-secondary);
}

.profileFormTextarea:hover {
  border-color: var(--border-color);
}

.profileSaveButton {
  background-color: #4a75ff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.profileSaveButton:hover {
  background-color: #3b5bdb;
  transform: translateY(-1px);
}

.profileSaveButton.spaceTop {
  margin-top: 10px;
}

.profileSaveButton.secondary {
  background-color: #6c757d;
  margin-top: 10px;
  margin-left: 10px;
}

.profileSaveButton.secondary:hover {
  background-color: #5a6268;
}

.profileSaveButton.fullWidth {
  margin-top: 20px;
  width: 100%;
}

.profileNotLoggedIn {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #e9ecef;
}

body.dark-mode .profileNotLoggedIn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.profileNotLoggedInTitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

body.dark-mode .profileNotLoggedInTitle {
  color: var(--text-primary);
}

.profileNotLoggedInText {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

body.dark-mode .profileNotLoggedInText {
  color: var(--text-secondary);
}

.profileLoginButton {
  background-color: #4a75ff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.profileLoginButton:hover {
  background-color: #3b5bdb;
  transform: translateY(-1px);
}

.profileRegisterButton {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.profileRegisterButton:hover {
  background-color: #4b5563;
  transform: translateY(-1px);
}

.profileButtonGroup {
  display: flex;
  gap: 5px;
  justify-content: center;
}

/* Nostr Key Display Styles */
.nostrKeysDisplay {
  margin-top: 20px;
}

.nostrKeyItem {
  margin-bottom: 20px;
}

.nostrKeyLabel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

/* Tab Styles */
.keyTabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.keyTab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s ease;
  position: relative;
  bottom: -2px;
}

.keyTab:hover {
  color: #4a75ff;
  background: #f8f9fa;
}

.keyTab.active {
  color: #4a75ff;
  border-bottom-color: #4a75ff;
}

.keyTabContent {
  animation: fadeIn 0.3s ease-out;
}

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

.nostrKeyValue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nostrKeyCode {
  flex: 1;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 12px;
  color: #333;
  background: transparent;
  border: none;
  word-break: break-all;
  line-height: 1.4;
}

.nostrKeyCode {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #1e293b;
  font-weight: 500;
}

.nostrQRCode {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-right: 8px;
}

.nostrQRPlaceholder {
  padding: 20px;
  text-align: center;
  color: #64748b;
}

/* Advanced Options Styling */
.advancedOptions {
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.advancedOptionLabel {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.advancedOptionLabel input[type='checkbox'] {
  cursor: pointer;
  margin-right: 8px;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  width: 16px;
  height: 16px;
  accent-color: #4a75ff;
}

/* Nostr Key Display Styling */
.nostrKeyDisplay {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nostrKeyFormat {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
  margin-top: 2px;
}

.nostrKeyCopyButton {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  height: 30px;
}

.nostrKeyCopyButton:hover {
  background: var(--bg-primary);
}

.nostrKeyActions {
  display: flex;
  gap: 10px;

  justify-content: center;
}

.nostrKeyWarning {
  background: #fef3cd;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 10px;
}

body.dark-mode .nostrKeyWarning {
  background: #3d3520;
  border: 1px solid #5a4a1a;
  color: #fde68a;
}

.nostrKeyWarning strong {
  color: #92400e;
  display: block;
  margin-bottom: 8px;
}

body.dark-mode .nostrKeyWarning strong {
  color: #fde68a;
}

.nostrKeyWarning ul {
  margin: 0;
  padding-left: 20px;
  color: #92400e;
}

body.dark-mode .nostrKeyWarning ul {
  color: #fde68a;
}

.nostrKeyWarning li {
  margin-bottom: 4px;
  font-size: 14px;
}

.nostrEventInfo {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 16px;
  margin-top: 20px;
}

.nostrEventInfo strong {
  color: #065f46;
  display: block;
  margin-bottom: 8px;
}

.nostrEventInfo p {
  color: #065f46;
  margin-bottom: 12px;
  font-size: 14px;
}

.nostrEventId {
  margin-top: 12px;
}

.nostrPublishError {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 16px;
  margin-top: 20px;
}

.nostrPublishError strong {
  color: #dc2626;
  display: block;
  margin-bottom: 8px;
}

.nostrPublishError p {
  color: #dc2626;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Backup Acknowledgement Styles */
.backupAcknowledgement {
  margin-top: 30px;
  padding: 34px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  text-align: center;
  background: var(--bg-secondary);
}

.backupAcknowledgementContent h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.backupAcknowledgementContent p {
  margin: 0 0 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.backupCheckbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.backupCheckbox:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.backupCheckbox input[type='checkbox'] {
  margin: 4px 0 0 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
  flex-shrink: 0;
}

.backupCheckbox span {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
}

.backupAcknowledgement button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #9ca3af !important;
}

.backupAcknowledgement button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

/* Mobile responsive adjustments for profile page */
@media screen and (max-width: 630px) {
  .profilePage {
    padding: 15px;
  }

  .profilePageTitle {
    font-size: 24px;
  }

  .profileUserInfo {
    flex-direction: column;
    text-align: left;
  }

  #profilePreview .profileUserInfo {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    margin-bottom: 0;
  }

  #profilePreview .profileAvatar {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }

  .profileBanner {
    height: 80px;
  }

  .profileAvatar {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .profileUserDetails {
    width: 100%;
  }

  .profileStatsGrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profileStatCard {
    padding: 15px;
  }

  .profileNotLoggedIn {
    padding: 30px 20px;
  }

  .profileButtonGroup {
    gap: 10px;
  }

  .profileLoginButton,
  .profileRegisterButton {
    width: 100%;
  }

  .nostrKeyValue {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nostrKeyCode {
    font-size: 11px;
    text-align: center;
  }

  .nostrKeyCopyButton {
    width: 100%;
    padding: 8px 12px;
  }

  .nostrKeyActions {
    flex-direction: column;
    gap: 8px;
  }

  .nostrKeyActions button {
    width: 100%;
  }

  .nostrQRCode {
    min-height: 150px;
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* About Page Styles */
.aboutContainer {
  max-width: 900px;
  margin: 0 auto;
}

.aboutHeroImage {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.aboutHeroImage img {
  width: 100%;
  height: auto;
  display: block;
}

.aboutHeroTitle {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4a75ff;
  letter-spacing: -1px;
  line-height: 1.2;
}

.aboutHeroSubtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 60px;
  line-height: 1.7;
  max-width: 720px;
}

.aboutContent {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.aboutSection {
  margin-bottom: 60px;
}

.aboutSectionTitle {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2c3e50;
  letter-spacing: -0.3px;
}

.aboutSectionTitleAlt {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 28px;
  color: #2c3e50;
  letter-spacing: -0.3px;
}

.aboutSectionTitleLarge {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #2c3e50;
  letter-spacing: -0.3px;
}

.aboutParagraph {
  margin-bottom: 15px;
}

.featureBlock {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.featureBlockLast {
  margin-bottom: 0;
}

.featureTitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #4a75ff;
  letter-spacing: -0.2px;
}

.featureDescription {
  margin-top: 0;
  margin-bottom: 0;
  color: #555;
  line-height: 1.7;
}

.featureList {
  padding-left: 24px;
  margin-bottom: 0;
  color: #555;
  line-height: 1.8;
}

.featureListItem {
  margin-bottom: 8px;
}

.featureListItem strong {
  color: #4a75ff;
}

.useCasesGrid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.useCaseCard {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.useCaseCard:hover {
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.08);
}

.useCaseTitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #4a75ff;
  letter-spacing: -0.2px;
  margin-top: 0;
}

.useCaseDescription {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.useCaseCode {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

body.dark-mode .useCaseCode {
  background: #3a3a3a;
}

.gettingStartedList {
  padding-left: 28px;
  line-height: 1.9;
  color: #555;
}

.gettingStartedItem {
  margin-bottom: 16px;
}

.gettingStartedItemLast {
  margin-bottom: 0;
}

.gettingStartedLink {
  color: #4a75ff;
  font-weight: 600;
  text-decoration: none;
}

.ctaSection {
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  padding: 48px 32px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(74, 117, 255, 0.25);
}

.ctaTitle {
  font-size: 28px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #fff;
}

.ctaSubtitle {
  font-size: 17px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.6;
  color: #fff;
}

.ctaButton {
  display: inline-block;
  background: #fff;
  color: #4a75ff;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.ctaButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.aboutFooter {
  border-top: 1px solid #e9ecef;
  padding-top: 28px;
  margin-top: 60px;
  font-size: 14px;
  color: #888;
  text-align: center;
}

.aboutFooterText {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .aboutHeroTitle {
    font-size: 32px;
  }

  .aboutHeroSubtitle {
    font-size: 16px;
  }

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

/* Settings Page Styles */
.settingsRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.settingsRowContent {
  flex: 1;
}

.toggleSwitch {
  display: block;
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggleSwitch input {
  width: 44px;
  height: 24px;
  cursor: pointer;
  appearance: none;
  background-color: #e5e7eb;
  border-radius: 100px;
  position: relative;
  transition: background-color 0.2s;
  outline: none;
  border: none;
  display: block;
}

.toggleSwitch input:checked {
  background-color: #4a75ff;
}

.toggleSwitch .toggleCircle {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  pointer-events: none;
}

.toggleSwitch input:checked + .toggleCircle {
  left: 26px;
}

.comingSoonText {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}

/* Relay Management Styles */
.relayList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relayItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.relayUrl {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
  flex: 1;
}

.removeButton {
  margin-left: auto;
  padding: 8px 16px;
  font-size: 13px;
  background-color: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.removeButton:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.removeButton:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
}

.addRelayContainer {
  display: flex;
  gap: 12px;
}

.relayInput {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  font-family: monospace;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

body.dark-mode .relayInput {
  background-color: var(--input-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.relayItemCard {
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.relayItemCard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-color: var(--border-light);
}

body.dark-mode .relayItemCard {
  border-color: var(--border-color) !important;
}

body.dark-mode .relayItemCard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.relayItemHeader {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 0;
  position: relative;
}

.relayStatusIndicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

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

.relayUrl {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.4;
}

.relayControls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.relayItemBody {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

body.dark-mode .relayItemBody {
  border-top-color: var(--border-color);
  color: var(--text-primary);
}

.relayToggleLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.relayToggleLabel .toggleSwitch {
  margin-top: 0;
  flex-shrink: 0;
}

.relayToggleText {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.relayToggleLabel:hover .relayToggleText {
  color: var(--text-primary);
}

.relayItemHeader .removeButton {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  transition: all 0.2s ease;
}

/* Mobile responsive styles for relay header */
@media screen and (max-width: 630px) {
  .relayItemHeader {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
    padding: 8px 0;
  }

  .relayUrl {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
    font-weight: 500;
  }

  .relayControls {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
  }

  .relayToggleLabel {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: none !important;
  }


  body.dark-mode .relayToggleLabel {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  body.dark-mode .relayToggleLabel:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }

  .relayItemHeader .removeButton {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    min-height: 48px;
    border-radius: 8px;
  }

  .relayToggleText {
    font-size: 13px;
    font-weight: 600;
  }

  .relayStatusIndicator {
    width: 12px;
    height: 12px;
  }
}

.addButton {
  padding: 12px 24px;
  font-size: 14px;
  background-color: #4a75ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  height: 42px;
}

.addButton:hover {
  background-color: #3b5bdb;
}

.descriptionWithMargin {
  margin-bottom: 16px;
}

.descriptionSmall {
  margin-bottom: 12px;
}

/* Dark Mode Support for Common Elements */
.featureTitle {
  color: var(--text-primary);
}

.featureDescription {
  color: var(--text-secondary);
}

.aboutSectionTitle,
.aboutSectionTitleLarge,
.aboutSectionTitleAlt {
  color: var(--text-primary);
}

.aboutHeroTitle {
  color: #4a75ff;
}

.aboutHeroSubtitle {
  color: var(--text-secondary);
}

.useCaseCard {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
}

.useCaseDescription {
  color: var(--text-secondary);
}

.gettingStartedList {
  color: var(--text-secondary);
}

.aboutFooter {
  border-top: 1px solid var(--border-light);
}

.aboutFooterText {
  color: var(--text-tertiary);
}

.comingSoonText {
  color: var(--text-tertiary);
}

/* Additional dark mode support */
.label {
  color: var(--text-secondary);
}

body.dark-mode .label {
  color: #616161;
}

.brand {
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

h5 {
  margin-bottom: 8px;
}

p {
  color: var(--text-primary);
}

.cta {
  transition: all 0.2s ease;
}

#customZapInput {
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

#zapCommentInput {
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

body.dark-mode .paynote .cta {
  border: #b2c4ff26 1px solid;
}

body.dark-mode .profileCopyButton {
  background-color: #292929;
  color: #999999;
  border: 1px solid #363636;
}

body.dark-mode .profileCopyButton:hover {
  background-color: #333333;
  border-color: #444444;
  color: #b8b8b8;
}

body.dark-mode .profileDetails {
  border-top: 1px solid #e9ecef26;
}

body.dark-mode .profilePublicKey {
  color: #ffffff;
}

/* 404 Not Found Page - Within Layout */
.notFoundPage {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  font-family: 'Inter', sans-serif;
  padding: 60px 20px;
}

.notFoundContent {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.notFoundContent .errorCode {
  font-size: 80px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.notFoundContent h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  font-family: 'Inter', sans-serif;
}

.notFoundContent p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.notFoundContent .cta {
  display: inline-block;
  background: linear-gradient(135deg, #4a75ff 0%, #3b5bdb 100%);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(74, 117, 255, 0.3);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  min-width: 200px;
  max-width: 200px;
}

.notFoundContent .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 117, 255, 0.4);
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4bc7 100%);
}

.notFoundContent .cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 117, 255, 0.3);
}

