.hidden{
  display:none;
}

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

body{
  font-family:'Inter',sans-serif;
  background:#060b16;
  color:white;
  overflow-x:hidden;
  min-height:100vh;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
  radial-gradient(circle at top left,rgba(0,255,255,0.12),transparent 30%),
  radial-gradient(circle at bottom right,rgba(0,110,255,0.16),transparent 35%);
  z-index:-2;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background-image:
  linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);
  background-size:40px 40px;
  opacity:0.25;
  z-index:-1;
}

.container{
  width:min(1400px,92%);
  margin:auto;
  padding:34px 0 100px;
}

.header{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:20px;
  margin-bottom:36px;
  flex-wrap:wrap;
}

.header-left{
  display:flex;
  align-items:center;
  gap:16px;
}

.back-btn{
  width:48px;
  height:48px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:white;
  cursor:pointer;
}

.logo-wrap h2{
  font-size:1.5rem;
}

.logo-wrap p{
  color:#7d8aa5;
  font-size:0.9rem;
}

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  margin-bottom:30px;
  padding:40px;
  border-radius:36px;
  background:linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(16px);
}

.hero-badge{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:#8eeeff;
  font-size:0.9rem;
  font-weight:600;
  margin-bottom:22px;
}

.hero h1{
  font-size:clamp(48px,8vw,84px);
  line-height:0.92;
  letter-spacing:-0.07em;
  margin-bottom:18px;
}

.hero p{
  max-width:620px;
  color:#8d98b0;
  line-height:1.9;
}

.hero-visual{
  display:flex;
  gap:20px;
}

.hero-image{
  width:120px;
  height:120px;
  border-radius:28px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4rem;
}

.table-search{

  margin-bottom:20px;

}

.table-search input{

  width:100%;

  padding:18px 22px;

  border:none;
  outline:none;

  border-radius:20px;

  background:
  rgba(255,255,255,0.04);

  border:
  1px solid rgba(255,255,255,0.08);

  color:white;

  font-size:14px;

  transition:0.25s;

}

.table-search input:focus{

  border-color:
  rgba(103,232,249,0.28);

  box-shadow:
  0 0 25px rgba(0,255,255,0.08);

}

.mode-switch{

  display:flex;
  
  align-items:stretch;

  gap:0;

  overflow:auto;

  background:
  rgba(255,255,255,0.03);

}

.mode-btn{

  border:none;

  border-radius:0;

  background:transparent;
  
  display:flex;

  align-items:center;
  justify-content:center;

  padding:18px 24px;

  min-height:64px;
  
  font-size:15px;

  font-weight:700;

  position:relative;

  color:#94a3b8;

}

.mode-btn.active{

  background:#0b1220;

  color:white;

}

.mode-btn.active::after{

  content:\"\";

  position:absolute;

  left:0;
  bottom:-1px;

  width:100%;
  height:2px;

  background:#0b1220;

}

.table-wrap{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:28px;
  overflow:hidden;
  margin-top:-1px;
}

.table-wrap table{
  width:100%;
  border-collapse:collapse;
}

th{
  text-align:left;
  padding:22px;
  color:#94a3b8;
  font-size:13px;
}

td{
  padding:22px;
  border-top:1px solid rgba(255,255,255,0.06);
}

tr:hover{
  background:rgba(255,255,255,0.025);
}

.recipe-panel{

  background:
  rgba(255,255,255,0.04);

  border:
  1px solid rgba(255,255,255,0.08);

  border-radius:28px;

  overflow:hidden;

}

.recipe-row{
  cursor:pointer;
}

.recipe-cell{
  display:flex;
  align-items:center;
  gap:14px;
}

.recipe-image{
  width:52px;
  height:52px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
}

.recipe-image img{
  width:90%;
  height:90%;
  object-fit:contain;
  image-rendering:pixelated;
}

.item-name{
  font-size:16px;
  font-weight:700;
}

.tier-badge{
  display:inline-flex;
  margin-top:6px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(103,232,249,0.12);
  border:1px solid rgba(103,232,249,0.3);
  color:#67e8f9;
  font-size:11px;
  font-weight:700;
}

.recipe-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.recipe-tag{
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  cursor:pointer;
  transition:0.2s;
  font-size:13px;
}

.recipe-tag:hover{
  border-color:rgba(0,255,255,0.25);
  background:rgba(0,255,255,0.08);
}

.recipe-link{

  color:#8eeeff;

  text-decoration:none;

  font-weight:600;

  transition:0.2s;

}

.recipe-link:hover{

  color:white;

  text-decoration:underline;

}

.no-recipe{

  color:#7d8aa5;

}

.used-for-list{

  padding-left:18px;

  display:flex;
  flex-direction:column;

  gap:6px;

}

.used-for-list li{

  color:#dbe6f7;

  line-height:1.5;

}

.more-text{

  padding-left:18px;

  color:#dbe6f7;

  line-height:1.5;

}

.pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:24px;
}

.pagination-center{
  display:flex;
  align-items:center;
  gap:14px;
}

.pagination button{
  width:48px;
  height:48px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:white;
  cursor:pointer;
}

.modal{
  position:fixed;
  inset:0;
  z-index:999;
}

.modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(6px);
}

.modal-content{

  position:absolute;

  top:50%;
  left:50%;

  transform:translate(-50%, -50%);

  width:min(800px,92%);

  background:#09101d;

  border:1px solid rgba(255,255,255,0.08);

  border-radius:32px;

  padding:36px;

  max-height:85vh;

  overflow:auto;

}

.close-modal{
  position:absolute;
  top:20px;
  right:20px;
  width:42px;
  height:42px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  color:white;
  cursor:pointer;
}

.modal-header{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:28px;
}

.modal-image{
  width:90px;
  height:90px;
  border-radius:24px;
  background:rgba(255,255,255,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-image img{
  width:90%;
  height:90%;
  object-fit:contain;
  image-rendering:pixelated;
}

.modal-title h2{
  font-size:2rem;
  margin-bottom:10px;
}

.modal-section{
  margin-top:28px;
}

.modal-section h3{
  margin-bottom:16px;
  color:#67e8f9;
}

@media(max-width:900px){

  .hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .table-wrap{
    overflow-x:auto;
  }

}

.seed-btn{

  margin-top:24px;

  display:inline-flex;

  align-items:center;

  gap:10px;

  padding:14px 22px;

  border-radius:16px;

  background:
  rgba(255,255,255,0.05);

  border:
  1px solid rgba(255,255,255,0.08);

  color:white;

  font-weight:700;

  cursor:pointer;

  transition:.25s;

}

.seed-btn:hover{

  background:
  rgba(255,255,255,0.08);

  border-color:
  rgba(103,232,249,0.25);

}

.seed-header{

  margin-bottom:30px;

}

.seed-header h2{

  font-size:2rem;

  margin-bottom:10px;

}

.seed-header p{

  color:#7d8aa5;

}

.seed-form{

  display:grid;

  grid-template-columns:
  1fr 1fr auto;

  gap:16px;

  margin-bottom:30px;

}

.seed-input-group label{

  display:block;

  margin-bottom:8px;

  color:#94a3b8;

  font-size:13px;

}

.seed-input-group input{

  width:100%;

  padding:16px;

  border-radius:16px;

  border:
  1px solid rgba(255,255,255,0.08);

  background:
  rgba(255,255,255,0.04);

  color:white;

  outline:none;

}

.seed-input-group input:focus{

  border-color:
  rgba(103,232,249,0.25);

}

#calculateSeedsBtn{

  padding:16px 24px;

  border:none;

  border-radius:16px;

  background:
  rgba(103,232,249,0.15);

  border:
  1px solid rgba(103,232,249,0.25);

  color:white;

  font-weight:700;

  cursor:pointer;

}

#seedResults{

  display:flex;

  flex-direction:column;

  gap:12px;

}

.seed-result-item{

  display:flex;

  align-items:center;

  gap:16px;

  padding:16px;

  border-radius:18px;

  background:
  rgba(255,255,255,0.04);

  border:
  1px solid rgba(255,255,255,0.06);

}

.seed-result-image{

  width:56px;

  height:56px;

  border-radius:14px;

  background:
  rgba(255,255,255,0.04);

  padding:6px;

  object-fit:contain;

  image-rendering:pixelated;

}

.seed-result-info{

  flex:1;

}

.seed-result-name{

  font-size:16px;

  font-weight:700;

}

.seed-result-tier{

  margin-top:4px;

  color:#7d8aa5;

  font-size:13px;

}

.seed-result-count{

  font-size:20px;

  font-weight:800;

  color:#67e8f9;

}