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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 10% 30%, #0a0f1a, #03060c);
  color: #c0e0ff;
  line-height: 1.5;
}

.container-main { max-width: 1600px; margin: 0 auto; padding: 1.2rem; }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: rgba(10, 20, 30, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid rgba(0, 255, 170, 0.3);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
  padding: 1.2rem;
}

/* ===== HEADER (merged) ===== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: rgba(10,20,30,0.7);
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  padding: 1rem 1.8rem;
  border: 1px solid rgba(0,255,170,0.2);
}
.logo-area h1 { font-size: 1.6rem; background: linear-gradient(135deg,#0f2b3d,#2a9d8f); -webkit-background-clip:text; background-clip:text; color:transparent; margin:0; }
.header-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav-links { display: flex; gap: 1.2rem; list-style: none; }
.nav-links a { color: #aaffdd; text-decoration: none; font-weight: 500; transition: 0.2s; }
.nav-links a:hover { color: #6effc0; text-shadow: 0 0 3px #0f0; }
.lang-switcher { display: flex; gap: 0.3rem; }
.lang-btn { background: #1a2a2f; border: 1px solid #2a9d8f; color: #ccffdd; padding: 0.3rem 0.7rem; border-radius: 2rem; cursor: pointer; font-size: 0.8rem; transition: 0.1s; }
.lang-btn.active, .lang-btn:hover { background: #1e6f5c; color: white; border-color: white; }

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, #0a1f2a, #031015);
  border-radius: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #2a9d8f40;
}
.hero h2 { font-size: 2rem; background: linear-gradient(95deg, #aaffdd, #6effc0); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; max-width: 800px; margin: 0 auto 1rem; color: #b8e6ff; }
.trend-badge { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.trend-badge span { background: #1e6f5c30; backdrop-filter: blur(4px); padding: 0.4rem 1rem; border-radius: 2rem; font-size: 0.8rem; border: 1px solid #2a9d8f; }

/* ===== CONVERTER DASHBOARD LAYOUT ===== */
.forge-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.sidebar-left { flex: 1.2; min-width: 260px; }
.center-panel { flex: 3; min-width: 320px; }
.sidebar-right { flex: 1.2; min-width: 260px; }

/* Group Menu Styles */
.group-item { margin-bottom: 0.8rem; }
.group-header {
  background: rgba(0, 255, 170, 0.15);
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  color: #aaffdd;
}
.group-header:hover { background: rgba(0, 255, 170, 0.3); }
.group-header i.fa-chevron-down { transition: transform 0.2s; }
.group-header.collapsed i.fa-chevron-down { transform: rotate(-90deg); }
.conv-items {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 300px;
  overflow-y: auto;
}
.conv-items.collapsed { display: none; }
.conv-btn {
  background: #1a2a2f;
  border: 1px solid #2a9d8f;
  padding: 0.5rem 0.8rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ccffdd;
}
.conv-btn i { width: 1.4rem; color: #2a9d8f; }
.conv-btn.active, .conv-btn:hover {
  background: linear-gradient(95deg, #1e6f5c, #2c9b82);
  color: white;
}
.conv-btn.active i, .conv-btn:hover i { color: white; }

.upload-zone {
  border: 2px dashed #2a9d8f;
  border-radius: 2rem;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  background: #0f1a1fcc;
}
.upload-zone.drag-over { background: #1a3a30; border-color: #6effc0; }
.preview-img { max-width: 100%; max-height: 260px; border-radius: 1.5rem; margin: 1rem 0; }
.btn-grad {
  background: linear-gradient(95deg, #134b5e, #1e6f5c);
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 3rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
}
.btn-grad.secondary { background: linear-gradient(95deg, #2c3e50, #1e4663); }
.btn-small {
  background: #2c3e50;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  color: white;
  cursor: pointer;
}
/* Matrix output */
.output-area {
  background: #010a0f;
  color: #0f0;
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 0.75rem;
  padding: 1rem;
  border-radius: 1.2rem;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid #2a9d8f;
  box-shadow: inset 0 0 10px #0f0f0f, 0 0 5px #0f0;
  text-shadow: 0 0 3px #0f0;
}
.log-box {
  background: #0a121a;
  border-radius: 1rem;
  padding: 0.6rem;
  font-size: 0.75rem;
  font-family: monospace;
  max-height: 180px;
  overflow-y: auto;
  color: #8affc0;
  border: 1px solid #2a9d8f;
}
.email-reg input { width: 100%; padding: 0.6rem; border-radius: 2rem; border: 1px solid #2a9d8f; background: #0a1a1a; color: #0f0; margin: 0.5rem 0; }
.reconstructor-card { margin-top: 1.5rem; }
.recon-controls { display: flex; gap: 1rem; margin: 0.8rem 0; flex-wrap: wrap; }
.download-bar { display: flex; gap: 0.8rem; margin-top: 0.8rem; flex-wrap: wrap; align-items: center; }
.badge-pro { background: #1e6f5c; color: white; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 2rem; margin-left: 0.5rem; }

/* ===== FEATURES GRID (SEO) ===== */
.features-section { margin: 3rem 0 2rem; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; background: linear-gradient(95deg, #aaffdd, #6effc0); -webkit-background-clip:text; background-clip:text; color:transparent; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: rgba(10,30,40,0.7);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #2a9d8f40;
  transition: 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: #6effc0; box-shadow: 0 10px 20px -8px #0f0f0f; }
.feature-icon { font-size: 2rem; color: #6effc0; margin-bottom: 0.8rem; }
.feature-card h3 { margin-bottom: 0.5rem; color: #ccffdd; }
.feature-card p { color: #b0d4ff; font-size: 0.9rem; }

/* ===== FOOTER (merged) ===== */
.footer-custom {
  margin-top: 3rem;
  background: #0a1a1a;
  border-radius: 2rem 2rem 0 0;
  padding: 2rem 1.5rem 1rem;
  color: #8affc0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-brand, .footer-links, .footer-address { flex: 1; min-width: 180px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li a { color: #b0d4ff; text-decoration: none; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-links li a:hover { color: #6effc0; }
.social-icons i { font-size: 1.4rem; margin-right: 1rem; cursor: pointer; transition: 0.2s; }
.social-icons i:hover { color: #6effc0; text-shadow: 0 0 4px #0f0; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid #2a9d8f40; font-size: 0.8rem; }

@media (max-width: 900px) {
  .forge-dashboard { flex-direction: column; }
  .main-header { flex-direction: column; gap: 1rem; text-align: center; }
  .header-right { justify-content: center; }
}