:root {
  --bg:      #1d2021;
  --bg2:     #282828;
  --panel:   #232323;
  --border:  #3c3836;
  --text:    #ebdbb2;
  --muted:   #a89984;
  --orange:  #fe8019;
  --yellow:  #fabd2f;
  --red:     #fb4934;
  --green:   #b8bb26;
  --blue:    #83a598;
  --aqua:    #8ec07c;
  --purple:  #d3869b;
  --accent:  #fe8019;
  --accent2: #ff4b1f;
  --radius:  9px;
  --shadow:  0 2px 18px #0c0f1329;
  font-size: 17px;
}

/* --- Layout & BG --- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
main { width: 100vw; margin: 0; padding: 0; }
.table-wrap, .details-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 6vw 32px 6vw;  /* <-- DOUBLE the side margins */
  width: 88vw;             /* 100vw - 2*6vw = 88vw */
  overflow-x: auto;
}

.details-card {
  margin: 38px auto 18px auto;
  padding: 36px 36px 28px 36px;
  max-width: 1000px;
  width: 97vw;
}

/* --- Topbar/Logo/Search --- */
.topbar {
  width: 100%;
  background: var(--bg2);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1.5px solid var(--border);
  gap: 14px;
}
.logo {
  font-family: 'Audiowide', monospace; /* or any font you prefer */
  font-size: 3rem;
  letter-spacing: 0.07em;
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin: 32px 0 0 0;
  text-transform: uppercase;
  user-select: none;
  /* Glow for both parts */

}
.logo:hover {
  color: var(--yellow);
}
.searchbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 600px;
  min-width: 240px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 56px;
  padding: 0;
}
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 22px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1em;
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--accent2);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1em;
  height: 100%;
  padding: 0 32px;
  cursor: pointer;
  transition: background 0.13s;
  border-radius: 0 var(--radius) var(--radius) 0;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px #fe801955;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Section Titles & Highlights --- */
.section-title {
  font-size: 1.22em;
  font-weight: 700;
  color: var(--accent2);
margin: 0 6vw 32px 6vw;  /* <-- DOUBLE the side margins */
  width: 88vw;             /* 100vw - 2*6vw = 88vw */
  letter-spacing: 1px;
  font-family: Helvetica, 'Audiowide', 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* --- Tables --- */
.explorer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.explorer-table th, .explorer-table td {
  padding: 25px 25px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 1em;
  background: var(--panel);
}
.explorer-table th {
  color: var(--yellow);
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
.explorer-table tr:hover td {
  background: #3c3836;
  color: var(--blue);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.loading-cell { text-align: center; color: var(--muted); }

/* --- Table status & colors --- */
.success, .contract-address {
  color: var(--green) !important;
}
.fail {
  color: var(--red) !important;
}
.hash-link, .addr-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Fira Mono', monospace;
  transition: color 0.13s;
  word-break: break-all;
}
.hash-link:hover, .addr-link:hover {
  color: var(--aqua);
  text-decoration: underline;
}

.contract-address {
  background: #163e32;
  font-weight: bold;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  word-break: break-all;
  margin: 2px 0;
  font-size: 1em;
}

/* --- Block/Tx Details --- */
.details-title {
  font-size: 1.19em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: 0.8px;
  font-family: 'Audiowide', 'Inter', 'Segoe UI', Arial, sans-serif;
}
.details-meta {
  font-size: 1.01em;
  color: var(--muted);
  margin-bottom: 18px;
  word-break: break-all;
  line-height: 1.7;
}
.block-section-title, .tx-section-title {
  color: var(--purple);
  font-size: 1.12em;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.7px;
  border-bottom: 1.7px solid var(--border);
  padding-bottom: 2px;
}
.block-meta-label, .details-label {
  width: 160px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  padding-right: 18px;
  font-size: 1em;
  white-space: nowrap;
}
.block-meta-value, .details-value {
  color: var(--aqua);
  font-family: 'Fira Mono', monospace;
  word-break: break-all;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: .01em;
}
.block-stat-label {
  color: var(--muted);
  font-size: 0.98em;
}
.block-stat-value {
  color: var(--green);
  font-size: 1.09em;
  font-weight: 600;
}
.tx-table th, .tx-table td {
  font-family: 'Fira Mono', monospace;
  word-break: break-all;
  white-space: pre-line;
  vertical-align: top;
  max-width: 340px;
  padding: 11px 9px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 1em;
}
.tx-table th {
  color: var(--orange);
  background: #181c22;
  font-weight: 700;
}
.tx-table tr:hover td {
  background: #282828;
  color: var(--purple);
  cursor: pointer;
}
.tx-contract-detail-row {
  background: #172127;
  color: var(--green);
  font-family: 'Fira Mono', monospace;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.tx-contract-detail-row .contract-address {
  display: inline-block;
  background: #163e32;
  border-radius: 4px;
  color: var(--green);
  font-weight: bold;
  padding: 2px 8px;
  margin-left: 8px;
  word-break: break-all;
}
.contract-code-block {
  background: #191e23;
  color: var(--aqua);
  border-radius: 5px;
  padding: 10px 12px;
  margin: 7px 0;
  font-size: 0.97em;
  font-family: 'Fira Mono', monospace;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.3;
  word-break: break-all;
}
.hash-copy-btn {
  margin-left: 10px;
  padding: 2px 10px;
  font-size: 0.91em;
  border-radius: 4px;
  border: none;
  background: #222e32;
  color: var(--accent2);
  cursor: pointer;
  transition: background .16s;
}
.hash-copy-btn:hover { background: #22323b; color: #fff; }
.error-msg {
  background: var(--red);
  color: #fff;
  padding: 15px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  margin: 24px 2vw 0 2vw;
  box-shadow: var(--shadow);
  text-align: center;
  width: 94vw;
}
.footer {
  color: var(--muted);
  background: #232323;
  text-align: center;
  font-size: 1.08em;
  margin: 38px 0 0 0;
  letter-spacing: 0.7px;
  padding-bottom: 14px;
}

/* --- Gruvbox Badges & Misc --- */
.badge-orange { background: var(--orange); color: #fff; border-radius: 5px; padding: 2px 7px; }
.badge-yellow { background: var(--yellow); color: #282828; border-radius: 5px; padding: 2px 7px; }
.badge-red    { background: var(--red);    color: #fff; border-radius: 5px; padding: 2px 7px; }
.badge-green  { background: var(--green);  color: #232323; border-radius: 5px; padding: 2px 7px; }
.badge-blue   { background: var(--blue);   color: #fff; border-radius: 5px; padding: 2px 7px; }
.badge-purple { background: var(--purple); color: #fff; border-radius: 5px; padding: 2px 7px; }

/* --- Responsive --- */
@media (min-width: 700px) {
  .topbar {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
  .searchbar {
    margin-left: 24px;
    margin-right: 0;
    width: 480px;
    min-width: 320px;
    max-width: 600px;
  }
}

@media (max-width: 1100px) {
  .details-card, .table-wrap, .error-msg { width: 99vw; margin-left: 0.5vw;}
  .details-summary { grid-template-columns: 1fr 1fr; }
  .section-title { margin-left: 3vw; }
}
@media (max-width: 700px) {
  .topbar { flex-direction: column; gap: 10px; align-items: flex-start; }
  .details-card, .table-wrap, .error-msg { padding: 10px 1vw; width: 99vw; }
  .details-summary { grid-template-columns: 1fr; }
  .section-title { margin-left: 3vw; }
  .searchbar {
    width: 98vw;
    max-width: 99vw;
    min-width: 0;
    margin: 0 auto;
    height: 44px;
  }
  .search-btn {
    padding: 0 18px;
    font-size: 0.98em;
  }
}


.tx-contract-detail-row .contract-address {
  background: none !important;
  color: var(--green) !important;
  border-radius: 0 !important;
  font-weight: bold;
  font-size: 1.07em;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
}





.logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 10px;
  margin-left: 18px;
  margin-right: 18px;
  background: transparent;
  box-shadow: 0 2px 16px #fe801911;
  transition: box-shadow 0.18s;
  display: block;
}

@media (max-width: 800px) {
  .logo-img {
    height: 44px;
    width: 44px;
    margin-left: 0;
    margin-right: 0;
  }
}

.block-meta-table td {
  padding: 10px 9px 18px 10;  /* top right bottom left */
  /* Or increase to 22px for even more space: padding: 22px 9px 22px 0; */
  font-size: 1em;
  vertical-align: top;
  border-bottom: 1px solid #232c31;
}

