/* Sticky footer setup */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container {
  flex: 1 0 auto; /* This makes the main content area expand to push footer down */
}

footer.container {
  flex-shrink: 0; /* Prevents the footer from shrinking */
}

/* overrides only */

/* Custom button sizes */
[data-theme="light"] button.small,
[data-theme="light"] a.small,
button.small,
a.small {
  --font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.35rem;
}

[data-theme="light"] button.tiny,
[data-theme="light"] a.tiny,
button.tiny,
a.tiny {
  --font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.3rem;
}

/* Danger button styling */
[data-theme="light"] button.danger,
[data-theme="light"] a.danger,
button.danger,
a.danger {
  --pico-primary: #dc3545;
  --pico-primary-hover: #bd2130;
  --pico-primary-focus: rgba(220, 53, 69, 0.25);
  --pico-primary-inverse: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

button.danger:hover,
a.danger:hover,
button.danger:focus,
a.danger:focus {
  background-color: #bd2130;
  border-color: #bd2130;
}

button.outline.danger,
a.outline.danger {
  background-color: transparent;
  color: #dc3545;
}

button.outline.danger:hover,
a.outline.danger:hover,
button.outline.danger:focus,
a.outline.danger:focus {
  background-color: transparent;
  color: #bd2130;
  border-color: #bd2130;
}

/* Remove a.btn class styling as PicoCSS already handles role="button" styling */

/* Legacy QR styles - overridden by new payment UI */

.icon-tiny-btn {
    padding: 4px;
}

.hero-brand {
  font-size: 18vw;
  width: 100%; 
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  padding: 0.5rem 0;
}

.tagline {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  font-weight: 300;
  text-transform: uppercase;
  margin-top: -1rem;
  opacity: 0.85;
  color: var(--pico-contrast);
}

@media (min-width: 768px) {
  .tagline {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }
}

/* Step section helper text styling */
.grid > div p small, 
.grid > div small,
.step-section p small,
.step-section small {
  opacity: 0.65;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--pico-form-text);
}

/* Theme-specific helper text adjustments */
@media (prefers-color-scheme: dark) {
  .grid > div p small, 
  .grid > div small,
  .step-section p small,
  .step-section small {
    color: rgba(255, 255, 255, 0.6);
  }
  
  /* Brighter input fields in dark mode */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="email"]:focus,
  input[type="number"]:focus,
  input[type="search"]:focus,
  input[type="tel"]:focus,
  input[type="url"]:focus,
  select:focus,
  textarea:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--pico-primary);
    color: white;
  }
  
  .currency-unit {
    color: rgba(255, 255, 255, 0.6);
  }
}

@media (prefers-color-scheme: light) {
  .grid > div p small, 
  .grid > div small,
  .step-section p small,
  .step-section small {
    color: rgba(80, 80, 80, 0.75);
  }
}

/* Navigation styling */
nav a {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
}

nav a:hover, 
nav a:focus, 
nav a:active {
  text-decoration: none;
}

/* Theme-specific navigation */
@media (prefers-color-scheme: dark) {
  nav a {
    color: white;
    font-weight: normal;
  }
}

@media (prefers-color-scheme: light) {
  nav a {
    color: var(--pico-color);
    font-weight: normal;
  }
}

nav a img {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: 72px;
  margin-right: 0.2rem;
  transition: transform 0.2s ease;
  position: relative;
  top: -5px;
}

nav a:hover img {
  transform: scale(1.05);
}

nav a strong {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0rem;
  font-size: 1.2rem;
}

/* Theme-specific logo display */
@media (prefers-color-scheme: light) {
  .theme-logo-dark {
    display: none;
  }
  .theme-logo-light {
    display: inline-block;
  }
}

@media (prefers-color-scheme: dark) {
  .theme-logo-dark {
    display: inline-block;
  }
  .theme-logo-light {
    display: none;
  }
}

/* Step section styling */
.grid > div {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.grid > div h3 {
  margin-top: 0;
}

/* Standalone step section styling */
.step-section {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.step-section h3 {
  margin-top: 0;
}

/* Section background styling with theme support */
.intro-section {
  margin: 0;
  padding: 2rem;
  border-radius: 0;
}

/* Intro section typography */
.intro-section .intro-title {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pico-primary);
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.intro-section p.features {
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 1rem;
  background-color: rgba(var(--pico-primary-rgb), 0.05);
  border-radius: var(--pico-border-radius);
  margin-top: 1.5rem;
}

.intro-section mark {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  margin: 0 0.1rem;
  border-radius: 3px;
  font-weight: 600;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.intro-section mark:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Responsive intro typography */
@media (min-width: 768px) {
  .intro-section .intro-title {
    font-size: 2.6rem;
  }
  
  .intro-section p {
    font-size: 1.15rem;
  }
  
  .intro-section p.features {
    font-size: 1.1rem;
  }
}

/* Dark mode - intro dark, steps light */
@media (prefers-color-scheme: dark) {
  .intro-section {
    background-color: var(--pico-card-background-color);
    color: var(--pico-card-color);
  }
  
  .intro-section mark {
    background-color: var(--pico-primary);
    color: var(--pico-primary-inverse);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  
  .intro-section mark:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
  
  .grid > div, .step-section {
    background-color: var(--pico-background-color);
  }
}

/* Light mode - intro light accent, steps white */
@media (prefers-color-scheme: light) {
  .intro-section {
    background-color: #e6f5ff;
    color: var(--pico-color);
    text-shadow: none;
  }
  
  .intro-section mark {
    background-color: rgba(0, 115, 183, 0.15);
    color: #0073b7;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    box-shadow: 0 1px 2px rgba(0, 115, 183, 0.1);
  }
  
  .intro-section mark:hover {
    box-shadow: 0 3px 6px rgba(0, 115, 183, 0.2);
  }
  
  .grid > div, .step-section {
    background-color: var(--pico-card-background-color);
  }
}

/* Special grid for the Next Steps section */
.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.next-steps-grid ul {
  margin-top: 0;
  padding-right: 1rem;
}

.next-steps-grid .callout-box {
  margin: 0;
  border: 2px solid var(--pico-primary);
  border-radius: var(--pico-border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding-left: 6.5rem; /* Ensure consistent spacing with rocket icon */
  overflow: visible; /* Make sure the icon doesn't get cut off */
}

/* Callout box styling */
.callout-box {
  padding: 1rem 1rem 1rem 6rem;
  border-radius: var(--pico-border-radius);
  background: linear-gradient(135deg, rgba(var(--pico-primary-rgb), 0.1) 0%, rgba(var(--pico-primary-rgb), 0.2) 100%);
  border-left: 4px solid var(--pico-primary);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.callout-box p {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
  z-index: 2;
  text-align: left;
}

.callout-box:before {
  content: "🚀";
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  opacity: 0.9;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Add a subtle shadow to the icon */
}

/* Theme-specific callout adjustments */
@media (prefers-color-scheme: dark) {
  .callout-box {
    background: linear-gradient(135deg, rgba(var(--pico-primary-rgb), 0.2) 0%, rgba(var(--pico-primary-rgb), 0.3) 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-color-scheme: light) {
  .callout-box {
    background: linear-gradient(135deg, rgba(var(--pico-primary-rgb), 0.15) 0%, rgba(var(--pico-primary-rgb), 0.25) 100%);
    color: var(--pico-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* Add responsive styles for the callout box on smaller screens */
@media (max-width: 600px) {
  .callout-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 1rem 1rem;
    text-align: left;
    position: relative;
  }
  .callout-box:before {
    position: static;
    display: inline-block;
    margin: 0 1rem 0 0;
    left: auto;
    top: auto;
    transform: none;
    font-size: 3.5rem;
    width: auto;
    text-align: center;
    vertical-align: middle;
  }
  .callout-box p {
    margin: 0;
    text-align: left;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Browser mockup */
.browser-mockup {
  width: 80%;
  margin: 0 auto 2.5rem auto;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center top;
}

.browser-mockup:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.browser-top-bar {
  background: #d1d1d1;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.browser-controls {
  display: flex;
  gap: 0.5rem;
  margin-right: 1.2rem;
}

.browser-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
}

.browser-control:hover {
  transform: scale(1.1);
}

.browser-control.close {
  background-color: #ff5f56;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.browser-control.minimize {
  background-color: #ffbd2e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.browser-control.maximize {
  background-color: #27c93f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

.browser-address-bar {
  flex: 1;
  background: white;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
  transition: all 0.3s ease;
}

.browser-address-bar:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
}

.browser-bar-icon {
  font-size: 0.85rem;
  color: #0080ff;
}

.browser-url {
  color: #0064da;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.browser-content {
  background: white;
  position: relative;
}

/* Dark mode browser mockup */
@media (prefers-color-scheme: dark) {
  .browser-mockup {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }
  
  .browser-mockup:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  }
  
  .browser-top-bar {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.05);
  }
  
  .browser-address-bar {
    background: #222;
    color: #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
  }
  
  .browser-address-bar:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  }
  
  .browser-bar-icon {
    color: #3a9bff;
  }
  
  .browser-url {
    color: #5ba8ff;
  }
  
  .browser-content {
    background: #222;
  }
  
  .browser-control.close,
  .browser-control.minimize,
  .browser-control.maximize {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
}

/* Hero section styling */
.centered-hero {
  text-align: center;
}

/* Footer styling */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 160px;
}

.footer-column h6 {
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--pico-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--pico-form-text);
  margin-bottom: 1rem;
  max-width: 280px;
  line-height: 1.5;
  font-weight: 400;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: var(--pico-form-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0.85;
}

.footer-column a:hover {
  color: var(--pico-primary);
  text-decoration: underline;
  opacity: 1;
}

.footer-column small {
  display: block;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 1.5rem;
  opacity: 0.8;
}

.payment-methods {
  margin-top: 1.5rem;
}

.bitcoin-icon, .lightning-icon {
  font-size: 1.5em;
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.bitcoin-icon {
  color: #f7931a;
  font-weight: bold;
  margin-right: 0.25rem;
}

.lightning-icon {
  color: #ffd700;
  margin: 0 0.1rem 0 0;
}

.sub-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(var(--pico-muted-border-color-rgb), 0.5);
  margin-bottom: 1rem;
}

.sub-footer small {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.75;
}

.sub-footer a {
  color: var(--pico-primary);
  text-decoration: none;
}

.sub-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-column {
    width: 100%;
  }
  
  .footer-column h6 {
    font-size: 0.9rem;
  }
  
  .footer-tagline {
    max-width: 100%;
  }
  
  .sub-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Dark mode footer adjustments */
@media (prefers-color-scheme: dark) {
  .footer-tagline {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .footer-column a {
    color: rgba(255, 255, 255, 0.75);
  }
  
  .footer-column a:hover {
    color: var(--pico-primary-hover);
  }
  
  .footer-column small {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .sub-footer small {
    color: rgba(255, 255, 255, 0.6);
  }
}

/* Component with left icon or number - modifier only */
.component-icon {
  position: relative;
  padding-left: 6.5rem !important; /* Override the standard padding with left space for icon */
  min-height: 5.5rem; /* Ensure minimum height for proper vertical centering */
  display: flex !important; /* Change to flex for vertical centering */
  flex-wrap: wrap;
  align-items: center !important;
}

.component-icon .icon {
  position: absolute;
  left: 1.75rem;
  top: 50%; /* Position at vertical center */
  transform: translateY(-50%); /* Perfect vertical centering */
  font-size: 3rem; /* Larger font size */
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  width: 3.5rem; /* Larger width */
  height: 3.5rem; /* Larger height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Direct children styling */
.component-icon > p {
  width: 100%;
  margin: 0.5rem 0;
}

.component-icon > p:first-of-type {
  margin-top: 0;
}

.component-icon > p:last-of-type {
  margin-bottom: 0;
}

/* Button group styling */
.component-icon .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem; /* Reduced from 0.75rem */
  margin-bottom: 0.25rem; /* Reduced from 0.5rem */
  width: 100%;
  align-items: center;
}

.component-icon .button-group button,
.component-icon .button-group a[role="button"] {
  margin: 0;
}

/* Make small text full-width and clearly below the buttons */
.component small {
  display: block;
  width: 100%;
  margin-top: 0.25rem; /* Reduced from 0.5rem */
}

.component-icon.with-number .icon {
  background-color: var(--primary);
  color: var(--primary-inverse);
  border-radius: 50%;
}

/* For very small mobile screens only */
@media (max-width: 480px) {
  .component-icon {
    padding-left: 5rem !important; /* Slightly reduced padding for smaller screens */
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    padding-right: 1.25rem !important;
    /* Keep the flex and align-items from parent rule */
  }
  
  .component-icon .icon {
    left: 1rem; /* Keep on left but closer to edge on mobile */
    top: 50%; /* Keep vertical centering */
    transform: translateY(-50%); /* Maintain vertical centering */
    font-size: 2.5rem; /* Slightly smaller on mobile */
    width: 3rem;
    height: 3rem;
  }
  
  .component-icon .button-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .component-icon .button-group button,
  .component-icon .button-group a[role="button"] {
    width: 100%;
  }
}

/* Small mobile to small tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
  .component-icon {
    padding-left: 5.5rem !important;
  }
  
  .component-icon .icon {
    left: 1.25rem;
    font-size: 2.75rem;
    /* Keep top: 50% and transform from parent rule */
  }
  
  .component-icon .button-group {
    gap: 0.25rem;
  }
}

/* Helper text styling for components */
.component p small,
.component small {
  opacity: 0.65;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--form-text);
}

/* Theme-specific helper text adjustments */
@media (prefers-color-scheme: dark) {
  .component p small,
  .component small {
    color: rgba(255, 255, 255, 0.6);
  }
}

@media (prefers-color-scheme: light) {
  .component p small,
  .component small {
    color: rgba(80, 80, 80, 0.75);
  }
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  align-items: center;
  margin-left: auto;
  padding: 6px 8px;
  cursor: pointer;
}

.mobile-menu-btn svg {
  stroke: currentColor;
}

/* Override default button hover/active styles */
.mobile-menu-btn:hover,
.mobile-menu-btn:focus,
.mobile-menu-btn:active {
  background: none;
  border-color: var(--pico-secondary-border);
  transform: none;
  filter: none;
  color: currentColor;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.nav-menu ul {
  display: flex;
  margin: 0;
}

/* Media queries for responsive design */
@media (min-width: 769px) {
  /* Desktop styles */
  nav.container {
    display: flex;
    align-items: center;
    padding: 0.5rem var(--pico-spacing);
  }
  
  nav.container > ul:first-child {
    margin: 0;
    padding: 0;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Mobile styles */
  .mobile-menu-btn {
    display: flex;
  }
  
  nav.container {
    flex-wrap: wrap;
    position: relative;
    align-items: center;
    padding: 0.5rem var(--pico-spacing);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--pico-background-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 0.5rem var(--pico-spacing);
    width: 100%;
    margin: 0;
    max-width: none;
    box-sizing: border-box;
  }
  
  .nav-menu.show {
    display: block;
  }
  
  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0;
  }
  
  .nav-menu ul:last-child {
    margin-bottom: 0;
  }
  
  .nav-menu ul li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu ul li a,
  .nav-menu ul li button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: 4px;
    text-align: left;
  }
  
  .nav-menu ul li a:hover,
  .nav-menu ul li button:hover {
    background-color: rgba(var(--pico-primary-rgb), 0.1);
  }
  
  .nav-menu ul li code {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    font-size: 0.9rem;
    background-color: var(--pico-card-background-color);
    border-radius: 4px;
  }
  
  nav a img {
    width: 48px;
    height: 48px;
    top: -3px; /* Slightly less offset for the smaller logo */
  }
  
  nav.container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Fix navigation alignment with content */
nav.container {
  padding-left: var(--pico-spacing);
  padding-right: var(--pico-spacing);
  max-width: var(--pico-container-max-width);
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

/* Alert styling for flash messages */
.alert {
  border-radius: var(--pico-border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid;
  overflow: hidden;
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.alert-info {
  background-color: rgba(13, 110, 253, 0.1);
  border-color: #0d6efd;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid transparent;
}

.alert-error .alert-header {
  background-color: rgba(220, 53, 69, 0.2);
  border-bottom-color: #dc3545;
}

.alert-warning .alert-header {
  background-color: rgba(255, 193, 7, 0.2);
  border-bottom-color: #ffc107;
}

.alert-info .alert-header {
  background-color: rgba(13, 110, 253, 0.2);
  border-bottom-color: #0d6efd;
}

.alert-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.alert-error .alert-header h4 {
  color: #bd2130;
}

.alert-warning .alert-header h4 {
  color: #d39e00;
}

.alert-info .alert-header h4 {
  color: #0a58ca;
}

.alert-body {
  padding: 1rem 1.25rem;
}

.alert-body ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .alert-error {
    background-color: rgba(220, 53, 69, 0.15);
  }
  
  .alert-warning {
    background-color: rgba(255, 193, 7, 0.15);
  }
  
  .alert-info {
    background-color: rgba(13, 110, 253, 0.15);
  }
  
  .alert-error .alert-header {
    background-color: rgba(220, 53, 69, 0.25);
  }
  
  .alert-warning .alert-header {
    background-color: rgba(255, 193, 7, 0.25);
  }
  
  .alert-info .alert-header {
    background-color: rgba(13, 110, 253, 0.25);
  }
  
  .alert-error .alert-header h4 {
    color: #f8d7da;
  }
  
  .alert-warning .alert-header h4 {
    color: #fff3cd;
  }
  
  .alert-info .alert-header h4 {
    color: #cfe2ff;
  }
}

/* Legacy paid QR style - overridden by new payment UI */

/* Enhanced Payment UI Styles */
.payment-section {
  position: relative;
  padding: 1.5rem;
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding-bottom: 1.25rem;
}

.payment-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.payment-amount h4 {
  font-size: 2.6rem;
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.currency-unit {
  font-size: 0.4em;
  font-weight: normal;
  color: var(--pico-muted-color);
  letter-spacing: 0.02em;
}

.payment-usd {
  font-size: 1rem;
  color: var(--pico-muted-color);
  margin-top: 0.25rem;
  font-weight: 400;
}

.payment-details {
  flex: 1;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-package {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.promo-field-container {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.25rem;
  background-color: var(--pico-background-color);
  margin-bottom: 1.25rem;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.discount-applied {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(var(--pico-primary-rgb), 0.1);
  border-radius: var(--pico-border-radius);
  border: 1px dashed rgba(var(--pico-primary-rgb), 0.3);
}

.discount-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--pico-color);
}

/* Promo code pills */
.promo-code {
  display: inline-flex;
  align-items: center;
  background-color: rgba(var(--pico-primary-rgb), 0.1);
  border: 1px solid rgba(var(--pico-primary-rgb), 0.2);
  border-radius: var(--pico-border-radius);
  padding: 0.1rem 0.25rem 0.1rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.promo-code code {
  color: var(--pico-primary);
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.remove-promo-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(var(--pico-primary-rgb), 0.8);
  font-size: 1rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 0.2rem;
  transition: all 0.2s ease;
}

.promo-code:hover {
  background-color: rgba(var(--pico-primary-rgb), 0.25);
  border-color: rgba(var(--pico-primary-rgb), 0.5);
  box-shadow: none;
}

.remove-promo-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(var(--pico-primary-rgb), 1);
}

/* Promo code input styling */
.promo-input-wrapper {
  display: block;
  /* Remove gap and flex to allow PicoCSS fieldset group to style children */
}

.promo-input,
.apply-promo-btn {
  font-size: 0.9rem;
  /* Removed padding, border-radius, height, box-sizing to allow PicoCSS to control sizing */
}

.apply-promo-btn {
  cursor: pointer;
  font-weight: 500;
  opacity: 1 !important;
  display: inline-block;
  transition: background 0.2s;
}

.apply-promo-btn:hover {
  background-color: var(--pico-primary-hover);
}

.qr-container {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
  max-width: 280px;
}

.qrcode {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  padding: 0.5rem;
  background: white;
}

.invoice-text-container {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: var(--pico-border-radius);
  margin: 1rem 0;
  max-height: 60px;
  overflow-y: auto;
}

.ln-invoice-text {
  flex: 1;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--pico-muted-color);
  letter-spacing: 0.02em;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  color: var(--pico-primary);
  border-radius: 4px;
  padding: 4px;
}

.copy-btn:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

.copy-btn .iconWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Tooltip styles */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 6px;
}

.payment-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--pico-muted-color);
}

.payment-terms a {
  color: var(--pico-primary);
  text-decoration: none;
}

.payment-terms a:hover {
  text-decoration: underline;
}

.payment-placeholder {
  color: var(--pico-muted-color);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.fakepay-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background-color: #0077FF;
  color: white;
  box-shadow: none;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .payment-section {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .promo-field-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  .discount-applied {
    background-color: rgba(var(--pico-primary-rgb), 0.15);
    border-color: rgba(var(--pico-primary-rgb), 0.4);
  }
  
  .invoice-text-container {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .qrcode {
    background: white;
  }
  
  .promo-code {
    background-color: rgba(var(--pico-primary-rgb), 0.25);
    border-color: rgba(var(--pico-primary-rgb), 0.4);
  }
  
  .promo-code code {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .promo-input-wrapper {
    /* Remove border-top-color */
  }
  
  .promo-input {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
  }
  
  .promo-input:focus {
    border-color: rgba(var(--pico-primary-rgb), 0.5);
    background-color: rgba(255, 255, 255, 0.12);
  }
  
  .remove-promo-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
  }
  
  .remove-promo-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
  }
  
  .promo-code:hover {
    background-color: rgba(var(--pico-primary-rgb), 0.35);
    border-color: rgba(var(--pico-primary-rgb), 0.6);
  }
  
  .discount-label {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .copy-btn {
    color: rgba(255, 255, 255, 0.8);
  }
  
  .copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Used when QR has been paid */
.qr-is-paid {
  position: relative;
  filter: blur(4px);
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.qr-is-paid::after {
  content: '✅';
  color: limegreen;
  font-size: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.big-emoji {
  font-size: 3.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Anti-spam message styling */
.anti-spam-message {
  background: #e6f0fa;
  color: #155fa0;
  border: 1px solid #90c2f8;
  border-radius: 6px;
  padding: 0.75em 1em;
  margin-bottom: 1em;
  font-size: 0.88em; /* 20% smaller than 1.1em */
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 1em; /* Increased from 0.5em to 1em for more space */
}

.anti-spam-message span {
  font-size: 3em; /* 2x larger than 1.5em */
}

.btc-lightning-box article.component {
  width: 100%;
  padding: 1rem;
  margin: 0;
}

.btc-lightning-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  flex-direction: row;
}

@media (max-width: 767px) {
  .btc-lightning-box {
    width: 100%;
    margin-bottom: 1rem;
  }
}

.btc-label {
  display: flex;
  align-items: center;
  min-width: 0;
}

.icon-col {
  width: 1.5em;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.text-col {
  flex: 1;
  min-width: 0;
}

.bitcoin-icon, .lightning-icon {
  font-weight: bold;
}

.lightning-icon {
  color: #ffd700;
  font-weight: bold;
  margin: 0 0.1rem 0 0;
  position: relative;
  top: 2px;
}

@media (max-width: 767px) {
  .btc-lightning-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.95rem;
  }
}

.btc-lightning-box .muted {
  font-size: 0.85em !important;
  color: var(--pico-muted-color) !important;
}

@media (max-width: 1200px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    grid-auto-flow: row;
  }
  .footer-grid .cell {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 1.5rem auto;
  }
  .footer-grid .cell article.component {
    text-align: center;
    font-size: 1em;
    word-break: normal;
    padding: 0.5em 0.2em;
  }
  .footer-grid .cell .muted {
    word-break: keep-all;
    white-space: nowrap;
    overflow-wrap: normal;
    text-align: center;
    display: block;
  }
}

.footer-grid .cell article.component > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7em;
  justify-content: center;
  margin-bottom: 0.5em;
  font-size: 0.95em;
  flex-wrap: wrap;
  min-width: 0;
  white-space: normal;
}

.footer-grid .cell article.component .btc-label {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 1em;
  margin-bottom: 0;
  white-space: normal;
}

.footer-grid .cell article.component hr {
  margin: 0.7em 0 0.5em 0;
}

.footer-grid .cell article.component .muted {
  display: block;
  font-size: 0.75em !important;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  margin: 0.5em auto 0 auto;
  line-height: 1.4;
  padding: 0 0.5em;
  max-width: 90%;
}

@media (max-width: 600px) {
  .next-steps-grid {
    grid-template-columns: 1fr;
  }
}


