/* ---------- BASE LAYOUT (unchanged – gold accents stay) ---------- */
body {
  background-size: cover;
  color: #f4f4e1;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fa-search {color: black !important;}
.fa-search:hover {color: #666 !important;}

.card,
.ip-info,
.map-card,
.chart-card,
.accordion-card {
  background: rgba(17, 17, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  padding: 20px;
  margin-bottom: 20px;
}
.back-links {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
}


@media (max-width: 600px) {
  .back-links {
    flex-wrap: wrap;
  }

  .back-button {
    flex: 1 1 140px;
    margin-bottom: 8px;
  }
}

.back-button {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  padding: 12px 16px;
  font-weight: lighter;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #ffef77 0%, #d4af37 100%);
  color: #111 !important;
  border-radius: 2px;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition: background 0.1s, box-shadow 0.2s;
}

.back-button:hover {
  background: linear-gradient(135deg, #ffef77 0%, #a4800a 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  text-shadow: 0 0 1px #fff;
}

.ip-data-link {
  flex: 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  padding: 12px 16px;
  font-weight: lighter;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #ffef77 0%, #d4af37 100%);
  color: #111 !important;
  border-radius: 2px;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition: background 0.1s, box-shadow 0.2s;
  margin: 5px auto;

}

.ip-data-link:hover {
background: linear-gradient(135deg, #ffef77 0%, #a4800a 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  text-shadow: 0 0 1px #fff;
}
.ip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 20px;
}

.ip-header h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #ffd700;
  margin: 0;
}

.ip-header a {
  color: #ffd700;
  font-size: 1.4em;
  text-decoration: none;
}

.card-section {
  margin-bottom: 20px;
}

.card-section h3,
.accordion-card h3 {
  font-size: 1.1em;
  color: #ffd700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-field {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  margin-bottom: 8px;
}

.card-field .label {
  color: #fff8b0;
  font-weight: 300;
  text-transform: uppercase;
  flex: 1;
}

.card-field .value {
  text-align: right;
  color: #fff;
  font-weight: 500;
  flex: 2;
}

.network-metadata .value a:hover {
  color: white;
  text-shadow: 0 0 4px #ffd700;
}

.map-card #geocodeMap {
  width: 100%;
  height: 250px;
  border-radius: 4px;
}

.accordion {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.accordion-header {
  padding: 12px 20px;
  font-size: 1em;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
}

.accordion-header:hover {
  background: rgba(255, 215, 0, 0.3);
}

.accordion-header::after {
  content: "▼";
  position: absolute;
  right: 20px;
  transition: transform 0.3s;
  font-size: 0.8em;
  transform: rotate(-180deg);
  color: #ffd700;
}

.accordion-header.active::after {
  transform: rotate(0);
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background: rgba(10, 10, 10, 0.7);
}

.loader {
  position: absolute;
  top: 12px;
  right: 50%;
  transform: translateX(50%);
  color: #ffd700;
  font-size: 0.9em;
  display: none;
}

.accordion-header.loading .loader {
  display: inline-block;
}

.accordion-header.loading::after {
  content: "";
}

.smart-grid-container {
  overflow-x: auto;
  margin-top: 10px;
}

.smart-grid {
  display: grid;
  gap: 10px;
  min-width: 600px;
}

.grid-header {
  font-weight: bold;
  background: rgba(255, 215, 0, 0.2);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff8dd;
}

.grid-cell {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff8dd;
}

.ip_footer {
  text-align: center;
  padding: 40px 0 80px;
}

.syndu_logo {
  height: 80px;
  width: auto;
}
