/* ===============================
   GLOBAL RESET
================================ */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', Arial, Helvetica, sans-serif;
}

html{
  scroll-behavior:smooth;
}

/* ===============================
   BODY
================================ */
body{
  background:linear-gradient(180deg,#f4f6fb,#eef1ff);
  color:#333;
  min-height:100vh;
}

/* ===============================
   HEADER
================================ */
header{
  background:linear-gradient(90deg,#0a1153,#1e3c72);
  color:#fff;
  padding:16px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  animation:fadeDown .8s ease;
}

header h2{
  font-size:20px;
  letter-spacing:.5px;
}

header span{
  font-size:14px;
  opacity:.85;
}

/* ===============================
   APP GRID
================================ */
.apps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
  padding:35px;
  animation:fadeIn .6s ease;
}

/* ===============================
   APP CARD
================================ */
.card{
  background:#fff;
  border-radius:22px;
  padding:22px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
  transition:all .35s ease;
  position:relative;
  overflow:hidden;
  animation:slideUp .7s ease forwards;
}

/* gradient glow */
.card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,transparent,#ff5f6d22,#ffc37122);
  opacity:0;
  transition:.4s;
}

.card:hover::before{
  opacity:1;
}

.card:hover{
  transform:translateY(-12px) scale(1.03);
  box-shadow:0 30px 70px rgba(0,0,0,.25);
}

/* ===============================
   APP ICON
================================ */
.card img{
  width:95px;
  height:95px;
  object-fit:cover;
  border-radius:22px;
  margin-bottom:10px;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
  transition:.35s;
}

.card:hover img{
  transform:scale(1.1) rotate(2deg);
}

/* ===============================
   TEXT
================================ */
.card h3{
  font-size:18px;
  margin:8px 0 4px;
  color:#222;
}

.desc{
  font-size:13px;
  color:#666;
  margin:6px 0;
  min-height:34px;
}

.bonus{
  color:#e53935;
  font-weight:800;
  font-size:14px;
  margin:6px 0;
  animation:pulse 2s infinite;
}

.rating{
  color:#ff9800;
  font-size:14px;
  margin:4px 0;
}

.downloads{
  font-size:12px;
  color:#777;
  margin:6px 0;
}

/* ===============================
   DOWNLOAD BUTTON
================================ */
.btn{
  display:block;
  padding:11px;
  border-radius:14px;
  color:#fff;
  text-decoration:none;
  background:linear-gradient(45deg,#ff512f,#dd2476);
  margin-top:12px;
  font-weight:600;
  letter-spacing:.3px;
  box-shadow:0 12px 25px rgba(221,36,118,.45);
  transition:.35s;
}

.btn:hover{
  transform:scale(1.06);
  box-shadow:0 18px 40px rgba(221,36,118,.7);
}

/* ===============================
   EMPTY STATE
================================ */
.empty{
  grid-column:1/-1;
  text-align:center;
  padding:90px 20px;
  color:#888;
  font-size:18px;
  animation:fadeIn 1s ease;
}

/* ===============================
   FORMS (ADMIN / FRONT)
================================ */
input, textarea, select{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #ccc;
  margin:8px 0;
  outline:none;
  transition:.3s;
}

input:focus, textarea:focus, select:focus{
  border-color:#dd2476;
  box-shadow:0 0 0 3px rgba(221,36,118,.2);
}

/* ===============================
   FOOTER
================================ */
footer{
  background:#0a1153;
  color:#fff;
  text-align:center;
  padding:18px;
  margin-top:50px;
  font-size:14px;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes slideUp{
  from{opacity:0;transform:translateY(50px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes fadeDown{
  from{opacity:0;transform:translateY(-40px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes pulse{
  0%{transform:scale(1)}
  50%{transform:scale(1.08)}
  100%{transform:scale(1)}
}

/* ===============================
   MOBILE
================================ */
@media(max-width:600px){
  header{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }

  .apps{
    padding:18px;
  }

  .card{
    border-radius:18px;
  }
}
