@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
}

body {
  background-color: #09090b;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}


.landing-container {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 40px auto;
  padding: 20px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 15px;
  background: linear-gradient(to right, #ffffff, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.hero-cta, .footer-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  width: auto;
  padding: 18px 40px;
}

.divider {
  height: 1px;
  background: #27272a;
  margin: 40px 0;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card p {
  font-size: 0.9rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.step-desc {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-top: 5px;
}

.landing-footer {
  text-align: center;
  padding: 60px 20px 20px 20px;
}

.social-links a {
  text-decoration: none;
  transition: 0.2s;
}

.social-links a:hover {
  color: #ffffff;
}


.app-container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 50px auto;
  padding: 45px;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .app-container {
    margin: 0;
    padding: 28px 20px;
    border: none;
    border-radius: 0;
    min-height: 100vh;
  }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
}

.subtitle {
  font-size: 1.05rem;
  color: #a1a1aa;
  border-bottom: 1px solid #27272a;
  padding-bottom: 24px;
  margin-bottom: 35px;
}

.tab-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 35px;
}

@media (max-width: 480px) {
  .tab-navigation {
    gap: 6px;
  }
}

.tab-btn {
  flex: 1;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  padding: 14px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.tab-btn:hover {
  background: #27272a;
  color: #ffffff;
}

.tab-btn.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  font-weight: 700;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-desc {
  font-size: 0.95rem;
  color: #71717a;
  margin-bottom: 25px;
  line-height: 1.6;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dynamic-input {
  display: none;
}

label {
  font-size: 0.9rem;
  color: #a1a1aa;
  font-weight: 500;
  letter-spacing: 0.5px;
}

input, select, textarea {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 14px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: none;
  font-family: 'JetBrains Mono', monospace;
}

input:focus, select:focus, textarea:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

input[readonly], textarea[readonly] {
  color: #52525b;
  background: #141416;
  cursor: not-allowed;
}

input::placeholder, textarea::placeholder {
  color: #3f3f46;
}

.input-with-btn, .password-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.input-with-btn input, .password-wrapper input {
  padding-right: 50px;
}

.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.copy-btn:hover {
  background: #27272a;
  color: #ffffff;
}

.copy-btn.success {
  color: #10b981;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.toggle-password:hover {
  background: #27272a;
  color: #ffffff;
}

.card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 24px;
}

.wallet-details-card {
  gap: 18px;
}

.feature-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #52525b;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.action-box {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

@media (max-width: 480px) {
  .action-box {
    flex-direction: column;
  }
}

button {
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}

.primary-btn, .danger-btn, .secondary-btn {
  padding: 14px 20px;
  border: none;
  width: 100%;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
  font-size: 1rem;
  font-weight: 600;
}

.primary-btn {
  background: #ffffff;
  color: #09090b;
}

.primary-btn:hover {
  background: #e4e4e7;
}

.primary-btn:active {
  transform: scale(0.99);
}

.danger-btn {
  background: #18181b;
  color: #f43f5e;
  border: 1px solid #27272a;
}

.danger-btn:hover {
  background: #27272a;
  border-color: #e11d48;
}

.secondary-btn {
  background: transparent;
  border: 1px solid #27272a;
  color: #a1a1aa;
}

.secondary-btn:hover {
  background: #18181b;
  color: #ffffff;
}

.small-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  width: auto;
}

.max-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #27272a;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s;
}

.max-btn:hover {
  background: #3f3f46;
}

.execute-btn {
  width: 100%;
  background: #ffffff;
  color: #09090b;
  border: none;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 30px;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.3px;
}

.execute-btn:hover {
  background: #e4e4e7;
  transform: scale(1.005);
}

.execute-btn:active {
  transform: scale(0.998);
}

.execute-btn:disabled {
  background: #18181b;
  color: #52525b;
  border: 1px solid #27272a;
  cursor: not-allowed;
  transform: none;
}

.status-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #18181b;
  border: 1px solid #27272a;
  color: #ffffff;
  line-height: 1.6;
}

.status-loading {
  border-color: #3f3f46;
  color: #a1a1aa;
}

.status-success {
  border-color: #10b981;
  color: #10b981;
  background: #0a1f1a;
}

.status-error {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #1f0a0f;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}

.selected-option {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 14px;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.selected-option:hover,
.custom-dropdown.open .selected-option {
  border-color: #52525b;
  background: #1c1c1f;
}

.selected-option::after {
  content: "▼";
  font-size: 0.7rem;
  color: #52525b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.custom-dropdown.open .selected-option::after {
  transform: rotate(180deg);
  color: #a1a1aa;
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 4px;
  list-style: none;
  display: none;
  z-index: 99999;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.9);
}

.custom-dropdown.open .dropdown-options {
  display: block;
  animation: dropIn 0.12s ease;
}

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

.dropdown-options li {
  padding: 12px 14px;
  color: #a1a1aa;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.dropdown-options li:hover,
.dropdown-options li.selected {
  background: #27272a;
  color: #ffffff;
}

.dropdown-options::-webkit-scrollbar {
  width: 4px;
}

.dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

.dashboard-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 24px;
}

.dashboard-row { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  padding-bottom: 16px; 
  margin-bottom: 16px; 
  border-bottom: 1px solid #27272a; 
}

.dashboard-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dash-label {
  font-size: 0.78rem;
  color: #52525b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

.highlight {
  color: #ffffff;
  font-weight: 700;
}

.highlight-green {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.text-break {
  word-break: break-all;
  white-space: normal;
  display: block;
  line-height: 1.5;
}


.label-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-with-icon label {
  margin-bottom: 0 !important;
}


.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: #3f3f46;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  z-index: 1; 
}


.info-tooltip.active {
  color: #a1a1aa;
  z-index: 9999; 
}


.info-tooltip svg {
  position: relative;
  z-index: 20; 
}


.tooltip-text {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 300px;
  max-width: min(300px, 90vw);
  background: #141416;
  color: #a1a1aa;
  text-align: left;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.6;
  position: absolute;
  z-index: 10; 
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.18s, visibility 0.18s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.9);
  border: 1px solid #27272a;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #27272a;
}

.info-tooltip.active .tooltip-text {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


.tooltip-text.tp-align-right { left: 0; transform: none; }
.tooltip-text.tp-align-right::after { left: 12px; transform: none; }
.tooltip-text.tp-align-left { left: auto; right: 0; transform: none; }
.tooltip-text.tp-align-left::after { left: auto; right: 12px; transform: none; }
.tooltip-text.tp-below { bottom: auto; top: calc(100% + 10px); }
.tooltip-text.tp-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #27272a; }
.tooltip-text img { width: 100%; height: auto; border-radius: 4px; display: block; margin-top: 8px; }


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }



.info-tooltip svg {
  position: relative;
  z-index: 10000;
}

.tooltip-text.tp-align-right {
  left: 0;
  transform: none;
}

.tooltip-text.tp-align-right::after {
  left: 12px;
  transform: none;
}

.tooltip-text.tp-align-left {
  left: auto;
  right: 0;
  transform: none;
}

.tooltip-text.tp-align-left::after {
  left: auto;
  right: 12px;
  transform: none;
}

.tooltip-text.tp-below {
  bottom: auto;
  top: calc(100% + 10px);
}

.tooltip-text.tp-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #27272a;
}

.tooltip-text img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-top: 8px;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}
