*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:Segoe UI,sans-serif;
  background:#f3f4f6;
}

/* HEADER */
.header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.header-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 15px;
}

/* LOGO */
.logo{
  text-decoration:none;
  color:inherit;
  font-weight:700;
  font-size:18px;
  transition:.3s;
}
.logo:hover{ color:#6366f1; }
.logo span{ color:#6366f1; }

/* HEADER RIGHT PREMIUM */
.header-right{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f9fafb;
  padding:6px 10px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.lang-switch{
  display:flex;
  background:#fff;
  border-radius:8px;
  padding:2px;
  box-shadow:inset 0 0 5px rgba(0,0,0,.05);
}

.lang-switch a{
  text-decoration:none;
  color:#555;
  font-weight:600;
  padding:4px 8px;
  border-radius:6px;
  transition:.3s;
  font-size:13px;
}

.lang-switch a.active{
  background:#6366f1;
  color:#fff;
}

.lang-switch a:hover{
  background:#e0e7ff;
  color:#6366f1;
}

.header-info{
  background:#fff;
  padding:5px 10px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  transition:.3s;
}

.header-info a{
  text-decoration:none;
  color:#111;
}

.header-info:hover{
  background:#6366f1;
  color:#fff;
}

.header-info:hover a{
  color:#fff;
}

/* CONTAINER */
.container{
  max-width:1100px;
  margin:auto;
  padding:20px;
}

/* TOP */
.top-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:15px;
}

.top-card{
  background:#fff;
  padding:15px;
  border-radius:10px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  cursor:pointer;
  transition:.2s;
  font-weight:600;
}

.top-card:hover{
  background:#6366f1;
  color:#fff;
  transform:translateY(-3px);
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:15px;
}

.card{
  background:#fff;
  border-radius:12px;
  padding:20px;
  box-shadow:0 4px 15px rgba(0,0,0,.05);
}

.rate-item{
  padding:12px;
  border-bottom:1px solid #eee;
  cursor:pointer;
  font-weight:600;
}

.rate-item:hover{
  background:#eef2ff;
}

/* INPUT */
.input-group{
  display:flex;
  gap:10px;
  margin-top:15px;
}

input{
  flex:1;
  padding:12px;
  border-radius:8px;
  border:1px solid #ddd;
}

button{
  padding:12px 20px;
  background:#6366f1;
  color:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

button:hover{
  background:#4f46e5;
}

/* RESULT */
.result{
  margin-top:20px;
}

.result-card{
  background:#f9fafb;
  padding:15px;
  border-radius:10px;
}

/* LOADER */
.loader{
  border:4px solid #eee;
  border-top:4px solid #6366f1;
  border-radius:50%;
  width:30px;
  height:30px;
  animation:spin 1s linear infinite;
  margin:auto;
}

@keyframes spin{
  100%{ transform:rotate(360deg); }
}

/* INFO */
.info-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin-top:20px;
}

.info-card{
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 15px rgba(0,0,0,.05);
  transition:.3s;
  position:relative;
  overflow:hidden;
}

.info-card:hover{
  transform:translateY(-8px);
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.info-card::before{
  content:"";
  position:absolute;
  left:-100%;
  top:0;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.5),transparent);
  transition:.5s;
}

.info-card:hover::before{
  left:100%;
}

.full{
  grid-column:1 / -1;
}

/* MOBILE */
@media(max-width:768px){
  .grid{ grid-template-columns:1fr; }
  .top-cards{ grid-template-columns:repeat(2,1fr); }
  .info-cards{ grid-template-columns:1fr; }
}

.loading-card{
  text-align:center;
  padding:30px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.pulse{
  width:15px;
  height:15px;
  background:#6366f1;
  border-radius:50%;
  margin:auto;
  animation:pulse 1s infinite;
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.5);opacity:0.5;}
  100%{transform:scale(1);opacity:1;}
}