* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e8e8e8;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Top navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 24, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e8e8e8;
}
.nav-links a {
  margin-left: 1rem;
  color: #bfc6d1;
  font-weight: 500;
}
.nav-links a:hover { color: #66c0f4; }

/* Hero */
.hero {
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.hero p { color: #b0b7c3; margin-bottom: 1.25rem; }

/* Search bar like steamid.co but modern */
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto 0.75rem;
}
.search-bar input[type="text"] {
  height: 48px;
  border-radius: 10px;
}
.search-bar button {
  height: 48px;
  padding: 0 1.25rem;
}
.quick-tips { color: #94a3b8; font-size: 0.9rem; }
.quick-tips code { margin: 0 0.3rem; }

/* Compact cards/rows */
.card.compact { padding: 1.25rem; }
.feature-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.feature-rows > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}
.feature-rows strong {
  color: #e8e8e8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.feature-rows span {
  color: #9fb3c8;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;
}

@media (max-width: 520px) {
  .feature-rows > div { grid-template-columns: 1fr; }
}

.steps { margin-left: 1rem; color: #c0c0c0; line-height: 1.7; }
.footer-links { text-align: center; margin-top: 1rem; }
.footer-links a { font-weight: 600; }

header {
  background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2366c0f4" opacity="0.3"/><circle cx="80" cy="40" r="1" fill="%235edfff" opacity="0.4"/><circle cx="40" cy="80" r="1.5" fill="%2366c0f4" opacity="0.2"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(360deg); }
}

header h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, #66c0f4, #5edfff, #a8e6cf);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: 3px;
  font-weight: 700;
  position: relative;
  text-shadow: 0 0 30px rgba(102, 192, 244, 0.3);
}

header p {
  color: #b0b0b0;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.container {
  max-width: 980px;
  margin: 1.5rem auto 2rem;
  background: rgba(23, 27, 43, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #66c0f4, #5edfff, #a8e6cf, #66c0f4);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

input[type="text"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(102, 192, 244, 0.2);
  font-size: 1rem;
  background: rgba(15, 15, 35, 0.8);
  color: #e8e8e8;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus {
  border-color: #66c0f4;
  box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.1);
  transform: translateY(-1px);
}

button {
  background: linear-gradient(135deg, #66c0f4 0%, #5edfff 100%);
  color: #0f0f23;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 192, 244, 0.4);
}

.card {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(102, 192, 244, 0.2);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(102, 192, 244, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(102, 192, 244, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card img {
  border-radius: 12px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #66c0f4;
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.3);
}

.card-details {
  flex: 1;
}

.card-details h2 {
  margin: 0 0 0.75rem 0;
  background: linear-gradient(45deg, #5edfff, #66c0f4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
  font-weight: 700;
}

.card-details p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #c0c0c0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-details strong {
  color: #66c0f4;
  font-weight: 600;
}

.stats {
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(102, 192, 244, 0.2);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #66c0f4, #5edfff, #a8e6cf);
}

.stats h3 {
  background: linear-gradient(45deg, #66c0f4, #5edfff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-list > div {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(102, 192, 244, 0.05) 100%);
  border: 1px solid rgba(102, 192, 244, 0.2);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-list > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #66c0f4, #5edfff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stats-list > div:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 192, 244, 0.4);
  box-shadow: 0 8px 25px rgba(102, 192, 244, 0.2);
}

.stats-list > div:hover::before {
  transform: scaleX(1);
}

.stats-list img {
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.stats-list > div:hover img {
  transform: scale(1.05);
}

/* Pills and status */
.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pill.ok { background: rgba(92,184,92,0.15); color: #5cb85c; border: 1px solid rgba(92,184,92,0.35); }
.pill.danger { background: rgba(217,83,79,0.15); color: #d9534f; border: 1px solid rgba(217,83,79,0.35); }
.pill.info { background: rgba(102,192,244,0.15); color: #66c0f4; border: 1px solid rgba(102,192,244,0.35); }

/* Ban boxes */
.ban-box {
  border: 1px solid rgba(255,255,255,0.08);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(255,255,255,0.03);
}
.ban-box.ok { border-left-color: #5cb85c; }
.ban-box.danger { border-left-color: #d9534f; }

/* ID table */
.id-table { display: grid; grid-template-columns: 160px 1fr; gap: 0.5rem 1rem; }
.id-row { display: contents; }
.id-row span { color: #9fb3c8; }
.id-row code { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); padding: 0.25rem 0.5rem; border-radius: 6px; }

/* Bandera de país */
.flag-icon {
  width: 18px !important;
  height: 14px !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

a {
  color: #5edfff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #66c0f4, #5edfff);
  transition: width 0.3s ease;
}

a:hover {
  color: #66c0f4;
}

a:hover::before {
  width: 100%;
}

/* Helpers */
.media-row { display: flex; align-items: center; gap: 0.5rem; }
.rounded { border-radius: 6px; }
.ml-1 { margin-left: 1rem; }

footer {
  text-align: center;
  padding: 3rem 0 2rem 0;
  color: #888;
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
  backdrop-filter: blur(10px);
}

section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(102, 192, 244, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(102, 192, 244, 0.2);
}

section h2 {
  color: #66c0f4;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

section ul, section ol {
  color: #c0c0c0;
  line-height: 1.6;
}

section li {
  margin: 0.5rem 0;
}

code {
  background: rgba(102, 192, 244, 0.1);
  color: #5edfff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'Monaco', 'Consolas', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
  margin: 0.75rem;
  padding: 1.25rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .card { flex-direction: column; text-align: left; align-items: flex-start; }
  .search-bar { grid-template-columns: 1fr; }
  .feature-rows { grid-template-columns: 1fr; }
  
  .stats-list {
    grid-template-columns: 1fr;
  }
  
  form {
    flex-direction: column;
  }
}

/* Botones flotantes */
.floating-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.9), rgba(94, 223, 255, 0.9));
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  text-decoration: none;
}

.floating-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(102, 192, 244, 0.4);
  background: linear-gradient(135deg, rgba(102, 192, 244, 1), rgba(94, 223, 255, 1));
}

.floating-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Tooltip */
.floating-btn .tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-btn .tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 65px;
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
  .floating-buttons {
    top: 15px;
    right: 15px;
  }
  
  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .floating-btn .tooltip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* SEO Content Styling */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(102, 192, 244, 0.2);
}

.feature h4 {
  color: #66c0f4;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  color: #b8b8b8;
  line-height: 1.5;
  margin: 0;
}

.cta-section {
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.1), rgba(94, 223, 255, 0.1));
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(102, 192, 244, 0.3);
  text-align: center;
}

.cta-section h3 {
  color: #66c0f4;
  margin-bottom: 1rem;
}

.cta-section ul {
  text-align: left;
  max-width: 600px;
  margin: 1rem auto;
}

.cta-section li {
  margin: 0.5rem 0;
  color: #e8e8e8;
}

.history-link {
  display: inline-block;
  background: linear-gradient(135deg, #66c0f4, #5edfff);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 192, 244, 0.3);
}

.history-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 192, 244, 0.4);
  background: linear-gradient(135deg, #5edfff, #66c0f4);
}

/* Improved Typography */
h2, h3 {
  color: #66c0f4;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
}

section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #d0d0d0;
}

code {
  background: rgba(102, 192, 244, 0.2);
  color: #5edfff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

ol, ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

strong {
  color: #66c0f4;
  font-weight: 600;
}

/* API Documentation Styles */
.api-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.endpoint {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid #66c0f4;
}

.endpoint h3 {
  color: #5edfff;
  background: rgba(102, 192, 244, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  margin-bottom: 1rem;
}

.endpoint h4 {
  color: #66c0f4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

pre {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(102, 192, 244, 0.3);
}

pre code {
  background: none;
  color: #e8e8e8;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}
