body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f5f7fb;
  color:#0f172a;
}

/* TOP BAR */
.topbar{
  background:#0f172a;
  color:#fff;
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:10;
}

.logo{
  font-weight:bold;
}

/* MENU */
.menu{
  display:flex;
  gap:18px;
}

.menu a{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  opacity:0.85;
}

.menu a:hover{
  opacity:1;
}

/* HAMBURGER */
.hamburger{
  display:none;
  font-size:22px;
  cursor:pointer;
}

/* MOBILE MENU */
.mobileMenu{
  position:fixed;
  top:60px;
  left:0;
  width:100%;
  background:#0f172a;
  display:flex;
  flex-direction:column;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:all 0.3s ease;
  z-index:9;
}

.mobileMenu.active{
  max-height:300px;
  opacity:1;
}

.mobileMenu a{
  color:#fff;
  padding:12px 16px;
  text-decoration:none;
  border-top:1px solid rgba(255,255,255,0.08);
  font-size:14px;
}

.mobileMenu a:hover{
  background:rgba(255,255,255,0.06);
}

/* MAIN LAYOUT */
.layout{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:15px;
  padding:20px;
  max-width:1200px;
  margin:auto;
  box-sizing:border-box;
}

/* ADS */
.ad{
  width:160px;
  min-height:600px;
  background:#e2e8f0;
  border-radius:10px;
  overflow:hidden;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ad img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* MAIN CONTAINER */
.container{
  flex:1;
  max-width:900px;
  width:100%;
  min-width:0;
}

/* CARD */
.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:20px;
  box-shadow:0 4px 12px rgba(0,0,0,0.04);
  margin-bottom:15px;
}

/* SEARCH */
.search{
  display:flex;
  gap:10px;
}

.search input{
  flex:1;
  padding:12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  outline:none;
}

.search button{
  padding:12px 16px;
  border:none;
  background:#2563eb;
  color:#fff;
  border-radius:8px;
  cursor:pointer;
}

/* TABLE */
table{
  width:100%;
  border-collapse:collapse;
}

tr{
  border-bottom:1px solid #e5e7eb;
}

td{
  padding:14px;
  font-size:14px;
  vertical-align:top;
}

td:first-child{
  font-weight:700;
  background:#f9fafb;
  width:40%;
  border-right:1px solid #e5e7eb;
}

/* STATUS */
#loading{
  display:none;
  color:#2563eb;
  margin:10px 0;
}

#error{
  color:red;
  margin-bottom:10px;
}

/* ================= FOOTER ================= */
.footer{
  background:#0f172a;
  color:#fff;
  margin-top:30px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:40px 20px;
  flex-wrap:wrap;
}

.footer-box{
  flex:1;
  min-width:200px;
}

.footer-box h3{
  margin-bottom:12px;
  font-size:16px;
}

.footer-box p{
  font-size:14px;
  opacity:0.8;
  line-height:1.6;
}

.footer-box a{
  display:block;
  color:#cbd5e1;
  text-decoration:none;
  font-size:14px;
  margin-bottom:8px;
}

.footer-box a:hover{
  color:#fff;
}

.footer-bottom{
  text-align:center;
  padding:12px;
  font-size:13px;
  border-top:1px solid rgba(255,255,255,0.1);
  opacity:0.8;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .layout{
    flex-direction:column;
    padding:12px;
  }

  .menu{
    display:none;
  }

  .hamburger{
    display:block;
  }

  .ad{
    display:none;
  }

  .search{
    flex-direction:column;
  }

  td{
    display:block;
    width:100%;
  }

  td:first-child{
    width:100%;
    border-right:none;
    border-bottom:1px solid #e5e7eb;
  }

  .footer-container{
    flex-direction:column;
    text-align:center;
  }

  .footer-box{
    min-width:100%;
  }
}