/**
 * @file WalletSelectModal.css
 * @license GPL-3.0
 *
 * Styles for the wallet selection modal
 * Matches zero.one design system with cyberpunk aesthetic
 */

.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.wallet-modal-content {
  width: 560px;
  max-width: 92vw;
  border-radius: 18px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  color: white;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.wallet-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-modal-subtitle {
  opacity: 0.75;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.wallet-modal-close {
  background: transparent;
  border: none;
  color: white;
  opacity: 0.8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.wallet-modal-close:hover {
  opacity: 1;
}

.wallet-modal-close:focus-visible {
  box-shadow: var(--state-focus-ring);
  border-radius: 6px;
}

/* Chain tabs */
.wallet-chain-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  -webkit-overflow-scrolling: touch;
}

.wallet-chain-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: var(--sp-2) var(--sp-2);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-glass);
  color: var(--text);
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.wallet-chain-tab:hover:not(:disabled):not(.wallet-chain-tab--soon) {
  background: var(--state-hover);
  border-color: var(--stroke-strong);
}

.wallet-chain-tab:active:not(:disabled):not(.wallet-chain-tab--soon) {
  transform: scale(0.99);
}

.wallet-chain-tab:focus-visible {
  outline: none;
  box-shadow: var(--state-focus-ring);
}

.wallet-chain-tab--active {
  border-color: rgba(107, 63, 160, 0.55);
  background: var(--state-active);
  box-shadow: 0 0 0 1px rgba(107, 63, 160, 0.35);
}

.wallet-chain-tab--soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.wallet-chain-tab__name {
  font: var(--font-label-xs);
  color: var(--text-soft);
}

.wallet-chain-chip {
  font: var(--font-label-xs);
  padding: 2px 6px;
  border-radius: 999px;
}

.wallet-chain-chip--live {
  color: var(--badge-available-fg);
  background: var(--badge-available-bg);
}

.wallet-chain-chip--testnet {
  color: var(--badge-limited-fg);
  background: var(--badge-limited-bg);
}

.wallet-chain-chip--soon {
  color: var(--badge-coming-fg);
  background: var(--badge-coming-bg);
  border: 1px solid var(--stroke-soft);
}

.wallet-panel {
  margin-top: var(--sp-3);
  min-height: 120px;
}

.wallet-option-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.wallet-option-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-3) !important;
  text-align: left !important;
}

.wallet-option-body {
  flex: 1;
  min-width: 0;
}

.wallet-option-body .wallet-option-name {
  margin: 0;
}

.wallet-option-body .wallet-option-status {
  margin-top: 2px;
}

.wallet-option-detail {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 4px;
}

.wallet-install-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.wallet-install-link:hover {
  background: rgba(34, 211, 238, 0.08);
}

.wallet-install-link:focus-visible {
  box-shadow: var(--state-focus-ring);
  outline: none;
}

.wallet-empty-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: var(--sp-2) 0 0;
}

.wallet-coming-soon-panel {
  padding: var(--sp-4);
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  background: var(--surface-glass);
  text-align: center;
}

.wallet-coming-soon-title {
  font: var(--font-title-sm);
  margin: 0 0 var(--sp-2);
}

.wallet-coming-soon-body {
  font: var(--font-body-sm);
  color: var(--muted);
  margin: 0;
}

.wallet-option-row:focus-visible {
  outline: none;
  box-shadow: var(--state-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  .wallet-chain-tab,
  .wallet-option {
    transition: none;
  }

  .wallet-chain-tab:active:not(:disabled) {
    transform: none;
  }

  .wallet-option:hover:not(.wallet-option-disabled) {
    transform: none;
  }
}

.wallet-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.wallet-option {
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(130, 90, 255, 0.25);
  background: rgba(40, 28, 70, 0.65);
  color: white;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.wallet-option:hover:not(.wallet-option-disabled) {
  background: rgba(40, 28, 70, 0.85);
  border-color: rgba(130, 90, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 90, 255, 0.2);
}

.wallet-option:active:not(.wallet-option-disabled) {
  transform: translateY(0);
}

.wallet-option-disabled {
  background: rgba(40, 28, 70, 0.25);
  cursor: not-allowed;
  opacity: 0.6;
}

.wallet-option-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 16px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-option-status {
  opacity: 0.7;
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}

.wallet-modal-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  opacity: 0.85;
  color: var(--text-soft);
  line-height: 1.5;
}

.wallet-modal-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(127, 29, 29, 0.22);
  color: rgba(254, 226, 226, 0.95);
  font-size: 12px;
  line-height: 1.45;
}

.wallet-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.wallet-modal-cancel {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: white;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.wallet-modal-cancel:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.wallet-install-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.98);
  text-decoration: none;
}

.wallet-install-link:hover {
  text-decoration: underline;
}

.wallet-option--install-only {
  cursor: default;
  text-align: left;
}

.wallet-modal-more-wallets {
  margin-top: 4px;
  padding: 8px 0 0;
}

.wallet-modal-more-wallets__summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  list-style: none;
}

.wallet-modal-more-wallets__summary::-webkit-details-marker {
  display: none;
}

.wallet-options-grid--nested {
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 640px) {
  .wallet-modal-content {
    padding: 18px;
  }

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

  .wallet-option {
    padding: 16px;
  }

  .wallet-modal-title {
    font-size: 18px;
  }

  .wallet-modal-subtitle {
    font-size: 12px;
  }
}

.staking-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.epoch-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.epoch-info {
  text-align: center;
  padding: 1rem;
}

.epoch-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.epoch-value {
  font-size: 3rem;
  font-weight: 700;
  color: #a855f7;
  margin-bottom: 0.5rem;
}

.epoch-time {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.epoch-end-time {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.epoch-source {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
  font-style: italic;
}

.epoch-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  font-style: italic;
}

.staking-card,
.dust-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.staking-card h2,
.dust-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.staking-info,
.dust-info {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.info-row .value {
  color: #a855f7;
  font-weight: 600;
}

.staking-actions,
.unstake-actions {
  margin-top: 1.5rem;
}

.staking-helper {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-style: italic;
}

.input-group {
  display: flex;
  gap: 1rem;
}

.input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}

.input-group input:focus {
  outline: none;
  border-color: #a855f7;
}

.input-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pending-unstake {
  padding: 1rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.unlock-info {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 8px;
  color: #fbbf24;
  text-align: center;
}

.dust-battery {
  margin-bottom: 1.5rem;
}

.battery-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.battery-bar {
  width: 100%;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 0.5rem;
}

.battery-fill {
  height: 100%;
  background: linear-gradient(90deg, #4de8ff 0%, #a855f7 100%);
  transition: width 0.3s ease;
  border-radius: 16px;
}

.battery-text {
  text-align: center;
  font-size: 1.125rem;
  color: #fff;
  font-weight: 600;
}

.dust-details {
  margin-top: 1.5rem;
}

.dust-note {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(77, 232, 255, 0.1);
  border-radius: 8px;
  color: #4de8ff;
  font-size: 0.875rem;
  line-height: 1.8;
}

.dust-note p {
  margin: 0.5rem 0;
}

.dust-note p:first-child {
  margin-top: 0;
}

.dust-note p:last-child {
  margin-bottom: 0;
}

.message-card {
  padding: 1rem;
  border-radius: 8px;
}

.message-card.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.message-card.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.message {
  text-align: center;
}

.staking-loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.staking-loading .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.staking-loading p {
  margin: 0;
  font-size: 0.875rem;
}

.error-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-content {
  text-align: center;
  padding: 2rem;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 1.5rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
}

.error-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.error-instructions {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.error-instructions p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.error-instructions code {
  display: block;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: #4de8ff;
  font-size: 0.875rem;
}

.epoch-boundary-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.epoch-error {
  text-align: center;
  padding: 1rem;
}

.error-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.error-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.epoch-loading {
  text-align: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.info-card {
  background: rgba(77, 232, 255, 0.05);
  border: 1px solid rgba(77, 232, 255, 0.2);
}

.info-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #4de8ff;
}

.info-content {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.info-content p {
  margin: 0.5rem 0;
}

.info-content .info-emphasis {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(77, 232, 255, 0.2);
}

.staking-status-card {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.staking-status-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #a855f7;
}

.status-info {
  padding: 0.5rem 0;
}

.status-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.status-label.status-pending {
  color: #fbbf24;
}

.status-label.status-active {
  color: #22c55e;
}

.status-label.status-available {
  color: #4de8ff;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.status-list li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.status-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #a855f7;
}

.unlock-info.locked {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.875rem;
}

.unlock-info.available {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.875rem;
}

.unstake-note {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.unstake-hint {
  margin-top: 0.75rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
}

/**
 * @file CongratsVideoModal.css
 * @license GPL-3.0
 *
 * Styles for the congratulations video modal
 */

.congrats-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.congrats-modal-content {
  width: min(420px, 92vw);
  max-height: 70vh;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 10, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.congrats-modal-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.congrats-modal-title {
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
}

.congrats-modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.congrats-modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.congrats-video-container {
  position: relative;
  background: black;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.congrats-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.congrats-tx-info {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.congrats-tx-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.congrats-tx-link {
  color: #a78bfa;
  font-size: 13px;
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s ease;
}

.congrats-tx-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.congrats-tx-hash {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 640px) {
  .congrats-modal-content {
    width: min(360px, 92vw);
    border-radius: 12px;
  }

  .congrats-modal-header {
    padding: 12px 16px;
  }

  .congrats-modal-title {
    font-size: 16px;
  }

  .congrats-tx-info {
    padding: 12px 16px;
  }
}

/**
 * @file NFOPage.css
 * @license GPL-3.0
 *
 * Styles for the NFT Initial Offering (NFO) page
 * Matches zero.one design system with cyberpunk aesthetic
 */

.nfo-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nfo-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero Banner with zero.one Genesis Access NFT Image */
.nfo-hero-banner {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.nfo-hero-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
  /* Use object-cover if you want it to fill the box (may crop edges) */
  /* object-fit: cover; */
  /* Optional: For pixel-art crisp look, uncomment below */
  /* image-rendering: pixelated; */
}

/* Responsive adjustments for hero banner */
@media (max-width: 640px) {
  .nfo-hero-banner {
    border-radius: 12px;
  }

  .nfo-hero-image {
    height: 280px;
  }
}

/* NFO Info Card */
.nfo-info-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.nfo-info-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.nfo-details {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.info-row .value {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.nfo-notice {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
}

.nfo-notice p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.nfo-notice strong {
  color: var(--primary);
  font-weight: 600;
}

/* Wallet Card */
.wallet-card {
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

.wallet-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mode-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mode-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.wallet-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-error {
  color: var(--error);
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
}

.wallet-links {
  margin-top: 0.5rem;
}

.wallet-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

.wallet-links a:hover {
  text-decoration: underline;
}

.wallet-connect-btn {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Participation Card */
.participation-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.participation-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.wallet-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.participation-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.input-group input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-helper {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.participate-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.inactive-notice {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--danger);
  text-align: center;
  font-size: 0.9rem;
}

/* Message Cards */
.message-card {
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.message-card.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.message-card.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.message h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.message-card.success .message h3 {
  color: var(--success);
}

.message-card.error .message h3 {
  color: var(--danger);
}

.message p {
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.participation-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

.payment-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.payment-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-info .info-row:last-child {
  border-bottom: none;
}

.participation-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.participation-details strong {
  color: var(--primary);
  font-weight: 600;
}

/* Info Card - How It Works */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
}

.info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  .nfo-container {
    padding: 1rem;
    gap: 1rem;
  }

  .round-value {
    font-size: 2rem;
  }

  .nfo-info-card h2,
  .participation-card h2,
  .wallet-card h2,
  .info-card h2 {
    font-size: 1.25rem;
  }

  .step {
    gap: 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.25rem;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }
}

.swap-events-feed {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.events-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text, #ffffff);
}

.events-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.events-subtitle {
  font-size: 0.85rem;
  color: var(--muted, rgba(255, 255, 255, 0.6));
}

.events-update-time {
  font-size: 0.75rem;
  color: var(--muted, rgba(255, 255, 255, 0.5));
}

.events-loading,
.events-error,
.events-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted, rgba(255, 255, 255, 0.6));
}

.events-error p {
  margin: 0 0 12px 0;
  color: var(--error, #ff4444);
}

.retry-btn {
  padding: 8px 16px;
  background: var(--primary, #4de8ff);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.retry-btn:hover {
  opacity: 0.8;
}

.events-empty-hint {
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--muted, rgba(255, 255, 255, 0.5));
}

.events-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

.events-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.events-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.7));
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.events-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-soft, rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.05));
}

.events-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.events-table tbody tr:last-child td {
  border-bottom: none;
}

.events-time {
  color: var(--muted, rgba(255, 255, 255, 0.6));
  font-size: 0.85rem;
}

.events-pair {
  font-weight: 500;
  color: var(--text, #ffffff);
}

.events-amount {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.events-slippage {
  color: var(--muted, rgba(255, 255, 255, 0.6));
}

.events-route {
  color: var(--muted, rgba(255, 255, 255, 0.6));
  font-size: 0.85rem;
}

.events-tx {
  font-family: 'Courier New', monospace;
}

.tx-link {
  color: var(--primary, #4de8ff);
  text-decoration: none;
  transition: opacity 0.2s;
}

.tx-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .events-table {
    font-size: 0.8rem;
  }

  .events-table th,
  .events-table td {
    padding: 8px 12px;
  }

  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .events-header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/**
 * @file LiquidStakingPage.css
 * @license GPL-3.0
 *
 * Styles for Liquid Staking Page
 */

.liquid-staking-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Three Column Layout */
.three-column-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .three-column-grid {
    grid-template-columns: 1fr;
  }
}

.column-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-empty {
  /* Intentionally empty - spacing/breathing room */
}

.staking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

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

.battery-section,
.staking-section,
.stake-section,
.liquid-stake-section,
.pixel-burn-section {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 200px;
  position: relative;
  z-index: 1;
}

/* Subtle dust background layer - contained within staking-grid frame */
.dust-background-layer {
  position: absolute;
  inset: 0;
  background-image: url('/dust.liquidstaking.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.battery-info-compact,
.staking-info-compact,
.battery-status,
.staking-status-compact {
  margin: 1rem 0;
}

.battery-info-compact .info-row,
.staking-info-compact .info-row,
.battery-status .info-row,
.staking-status-compact .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: '0.9rem';
}

.battery-visual-compact {
  margin: 1rem 0;
}

.battery-visual-compact .battery-bar {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.battery-visual-compact .battery-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa 0%, #8b5cf6 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.battery-visual-compact .battery-text {
  margin-top: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.balance-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.1);
}

.liquid-staking-card {
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
}

.liquid-staking-card h1 {
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.liquid-staking-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.wallet-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.balance-tier-info,
.status-info {
  margin: 1.5rem 0;
}

.balance-tier-info .info-row,
.status-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-tier-info .info-row:last-child,
.status-info .info-row:last-child {
  border-bottom: none;
}

.balance-tier-info .info-row span,
.status-info .info-row span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.balance-tier-info .info-row .value,
.status-info .info-row .value {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.tier-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.tier-badge[data-tier="bronze"] {
  background: rgba(180, 83, 9, 0.2);
  border: 1px solid rgba(180, 83, 9, 0.4);
  color: #fbbf24;
}

.tier-badge[data-tier="silver"] {
  background: rgba(107, 114, 128, 0.2);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #e5e7eb;
}

.tier-badge[data-tier="gold"] {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fbbf24;
}

.leasing-status-card,
.fee-preview-card,
.manual-designation-card,
.privacy-included-card,
.fee-sharing-card {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.leasing-status-card h3,
.fee-preview-card h3,
.manual-designation-card h3,
.privacy-included-card h3,
.fee-sharing-card h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.leasing-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fee-comparison {
  margin-top: 1rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-row span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.fee-row .value {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.modal-content {
  width: min(500px, 100%);
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
}

.modal-content h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.message-card {
  padding: 1rem;
  border-radius: 8px;
}

.message-card.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.message-card.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.message-card .message {
  font-size: 0.9rem;
}

/**
 * @file RoutePreview.css
 * @license GPL-3.0
 *
 * Styles for Route Preview Component
 */

.route-preview {
  padding: 16px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  margin: 12px 0;
}

.route-preview-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px;
}

.route-preview-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.route-preview-path-multi {
  flex-wrap: wrap;
}

.route-preview-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 80px;
}

.route-preview-token-symbol {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.route-preview-token-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-preview-arrow {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.route-preview-dex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  min-width: 100px;
}

.route-preview-dex-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.route-preview-dex-percent {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .route-preview-path {
    flex-direction: column;
    gap: 8px;
  }

  .route-preview-arrow {
    transform: rotate(90deg);
  }
}


/* UI SURGICAL 06 — compact private ADA received card */
.pse-private-receipt-hero--compact {
  padding: 14px 14px 12px;
}
.pse-private-receipt-hero--compact .pse-private-receipt-hero__header {
  margin-bottom: 8px;
}
.pse-private-receipt-hero--compact .pse-private-receipt-hero__badge {
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.pse-private-receipt-hero--compact .pse-private-receipt-hero__title {
  font-size: 1rem;
}
.pse-private-receipt-hero__note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.82);
}
.pse-private-receipt-hero__whats-next,
.pse-private-account-actions__whats-next {
  margin-top: 8px;
  font-size: 0.78rem;
}
.pse-private-receipt-hero__whats-next > summary,
.pse-private-account-actions__whats-next > summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
}
.pse-private-receipt-hero__whats-next-body,
.pse-private-account-actions__whats-next-body {
  margin-top: 8px;
}
.pse-private-receipt-hero__footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}
.pse-private-receipt-hero__done,
.pse-private-account-actions__done {
  font-size: 0.78rem;
  padding: 6px 14px;
}
