* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 900px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

/* REVISED: Grid Layout for Perfect Centering */
.header-row {
  display: grid;
  /* 3 Columns: Left (Logo), Center (Title), Right (Counter) */
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  width: 100%;
}

.header-row > :nth-child(1) { justify-self: end; }
.header-row > :nth-child(2) { justify-self: center; text-align: center; }
.header-row > :nth-child(3) { justify-self: start; }

.header-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.counter-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-box:hover {
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.counter-box:active { transform: translateY(1px); }

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1; 
  white-space: nowrap;
}

.subtitle {
  color: #888;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-top: 15px;
}

.subdomain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.subdomain-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subdomain-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.subdomain-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
  display: flex;  
  align-items: center;  
  justify-content: center;  
  gap: 8px;  
  position: relative;  
}  

.subdomain-name::before {  
  content: '→';  
  font-size: 1.2rem;  
  opacity: 0;  
  transform: translateX(-10px);  
  transition: all 0.3s ease;  
}  

.subdomain-card:hover .subdomain-name::before { opacity: 1; transform: translateX(0); }  

.subdomain-name::after {  
  content: '←';  
  font-size: 1.2rem;  
  opacity: 0;  
  transform: translateX(10px);  
  transition: all 0.3s ease;  
}  

.subdomain-card:hover .subdomain-name::after { opacity: 1; transform: translateX(0); }  

.subdomain-description {  
  color: #aaa;  
  font-size: 0.95rem;  
  line-height: 1.5;  
}  

footer {  
  text-align: center;  
  margin-top: 60px;  
  color: #666;  
  font-size: 0.9rem;  
}  

footer a {  
  color: #667eea;  
  text-decoration: none;  
  transition: color 0.3s ease;  
}  

footer a:hover { color: #764ba2; }  

/* Added this class to replace the inline style in your footer */
.footer-divider {
  margin: 0 10px; 
  opacity: 0.5;
}

@media (max-width: 650px) {  
  h1 { font-size: 2rem; } 
  .header-logo { height: 2rem; } 
  .subdomain-grid { grid-template-columns: 1fr; }
  .header-row { display: flex; flex-direction: column; gap: 15px; }
}