.custom-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle, black 35%, transparent 95%);
    opacity: .35;
    z-index: -1;
}
.custom-bg {
    background: radial-gradient(circle at top, rgba(109, 40, 217, .08), transparent 45%), linear-gradient(180deg, #090913 0%, #070710 45%, #05050c 100%);
}
.host-img img{
    max-width: 200px;
}
.host-img small{
    margin-left: 5px;
    font-weight: 700;
}
.host-img {
    position: absolute;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* ====================================
   RESET & BASE STYLES
   ==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* ====================================
   LAYOUT
   ==================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */

header {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 300px;
}

.tagline {
  color: #7f8c8d;
  font-size: 0.9em;
}

.nav {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
}

.nav a {
  color: #3498db;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 10px;
}

h2 {
  color: #2c3e50;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.8em;
}

h3 {
  color: #34495e;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.3em;
}

p {
  margin-bottom: 15px;
}

a {
  color: #3498db;
}

code {
  background: #ecf0f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
}

/* ====================================
   BUTTONS
   ==================================== */

button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.download-btn {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.2em;
  font-weight: 600;
  transition: background 0.3s;
  margin: 10px;
}

.download-btn:hover {
  background: #229954;
}

.download-btn.secondary {
  background: #95a5a6;
}

.download-btn.secondary:hover {
  background: #7f8c8d;
}

/* ====================================
   SEARCH INTERFACE
   ==================================== */

.search-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.search-input-container {
  position: relative;
  margin-bottom: 15px;
}

#searchInput {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border: 2px solid #ddd;
  border-radius: 4px;
  outline: none;
}

#searchInput:focus {
  border-color: #3498db;
}

.search-tips {
  margin-top: 10px;
  text-align: center;
  color: #7f8c8d;
}

.search-tips code {
  background: #ecf0f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: #2c3e50;
}

/* ====================================
   SEARCH RESULTS
   ==================================== */

.results {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-item {
  padding: 20px 0;
  border-bottom: 1px solid #ecf0f1;
}

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

.result-title {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.result-title a {
  color: #3498db;
  text-decoration: none;
}

.result-title a:hover {
  text-decoration: underline;
}

.result-url {
  color: #27ae60;
  font-size: 0.9em;
  margin-bottom: 5px;
  line-break: anywhere;
}

.result-description {
  color: #555;
  line-height: 1.5;
}

.result-meta {
  margin-top: 8px;
  font-size: 0.85em;
  color: #95a5a6;
}

.result-meta span {
  margin-right: 15px;
}

.no-results {
  text-align: center;
  color: #7f8c8d;
  padding: 40px;
}

/* ====================================
   PAGINATION
   ==================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.pagination button {
  padding: 8px 16px;
  font-size: 0.9em;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .page-info {
  color: #7f8c8d;
  font-size: 0.9em;
}

/* ====================================
   STATS & STATUS
   ==================================== */

.stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
  font-size: 0.9em;
  color: #7f8c8d;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-value {
  font-size: 2.5em;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 5px;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.connection-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 10px;
}

.connection-status.connected {
  background: #d5f4e6;
  color: #27ae60;
}

.connection-status.disconnected {
  background: #fadbd8;
  color: #e74c3c;
}

/* ====================================
   NODE INFO & PEERS
   ==================================== */

.node-info {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.node-info h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ecf0f1;
}

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

.info-label {
  font-weight: 500;
  color: #555;
}

.info-value {
  color: #777;
}

.peers-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.peers-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.peer-list {
  display: grid;
  gap: 15px;
}

.peer-card {
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  padding: 15px;
  transition: box-shadow 0.3s;
}

.peer-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.peer-card.online {
  border-left: 4px solid #27ae60;
}

.peer-card.offline {
  border-left: 4px solid #e74c3c;
  opacity: 0.7;
}

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

.peer-name {
  font-weight: 600;
  color: #2c3e50;
}

.peer-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 500;
}

.peer-status.online {
  background: #d5f4e6;
  color: #27ae60;
}

.peer-status.offline {
  background: #fadbd8;
  color: #e74c3c;
}

.peer-details {
  font-size: 0.9em;
  color: #777;
}

.peer-details div {
  margin-top: 5px;
}

/* ====================================
   FORMS
   ==================================== */

.submit-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

input[type="url"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
}

input[type="url"]:focus {
  outline: none;
  border-color: #3498db;
}

.help-text {
  font-size: 0.9em;
  color: #7f8c8d;
  margin-top: 5px;
}

/* ====================================
   MESSAGE BOXES
   ==================================== */

.loading {
  text-align: center;
  padding: 40px;
  color: #3498db;
}

.error {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.info {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #555;
}

.info-box {
  background: #e8f4f8;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.success {
  background: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.warning-box {
  background: #fff3cd;
  border-left: 4px solid #f39c12;
  padding: 15px;
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
}

/* ====================================
   CONTRIBUTE PAGE SPECIFIC
   ==================================== */

.content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero {
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  color: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.hero h2 {
  color: white;
  margin-top: 0;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature {
  padding: 20px;
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  text-align: center;
}

.feature h3 {
  color: #3498db;
  margin-top: 0;
}

.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.steps {
  list-style: none;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  margin: 20px 0;
  padding-left: 50px;
  position: relative;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #3498db;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.examples {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

.examples h3 {
  font-size: 1em;
  margin-bottom: 10px;
  color: #2c3e50;
}

.examples ul {
  list-style: none;
  padding-left: 0;
}

.examples li {
  padding: 5px 0;
  color: #555;
}
