*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#030712;
  color:#e5e7eb;
}
header{
  padding:16px;
  background:rgba(3,7,18,.9);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.container{
  padding:16px;
  display:grid;
  gap:16px;
}
.card{
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  transition:.25s;
}
.card:hover{transform:scale(1.02)}
.card img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:14px;
}
.rank{margin-top:8px;font-weight:700}
.info{font-size:13px;color:#9ca3af}
.price{margin-top:6px;font-size:18px;font-weight:800;color:#22c55e}
.buy-btn{
  margin-top:10px;
  width:100%;
  padding:12px;
  border-radius:14px;
  background:#3b82f6;
  color:white;
  font-weight:700;
  border:none;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:none;
  align-items:flex-end;
}
.modal.active{display:flex}
.modal-box{
  background:#030712;
  width:100%;
  padding:16px;
  border-radius:22px 22px 0 0;
}
.modal img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:16px;
}
.close{
  position:absolute;
  right:20px;
  font-size:22px;
}
.buy-final{
  margin-top:12px;
  width:100%;
  padding:14px;
  background:#22c55e;
  border:none;
  border-radius:16px;
  font-weight:800;
}
.back-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.back-btn:active {
  transform: scale(0.95);
}
#search {
  width: 100%;
  max-width: 420px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: none;
  outline: none;
  
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  
  transition: all 0.3s ease;
}

#search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#search:focus {
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 160, 255, 0.6);
}
.akk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.akk-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.btn-view,
.btn-buy {
  flex: 1;
  padding: 14px 0;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Ko‘rish */
.btn-view {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.btn-view:hover {
  transform: translateY(-2px);
}

/* Sotib olish */
.btn-buy {
  background: linear-gradient(135deg, #1fd286, #16a34a);
  color: #fff;
}

.btn-buy:hover {
  transform: translateY(-2px);
}
.modal .back {
  position: relative; /* muhim */
  top: 650px;          /* 🔽 shu bilan pastga tushadi */

  width: 100%;
  padding: 16px 18px;

  margin-bottom: 16px;

  background: rgba(255,255,255,0.08);
  color: #fff;

  border: none;
  border-radius: 16px;

  font-size: 16px;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 10px;

  cursor: pointer;
  backdrop-filter: blur(12px);
}
.action-bar {
  position: sticky;
  bottom: 12px;

  display: flex;
  gap: 12px;

  padding: 12px;
  margin-top: 24px;

  background: linear-gradient(
    to top,
    rgba(10,14,25,0.95),
    rgba(10,14,25,0.6),
    transparent
  );

  backdrop-filter: blur(10px);
  z-index: 10;
}

/* ORQAGA */
.back-btn {
  flex: 1;

  padding: 16px 0;
  border-radius: 16px;

  background: rgba(255,255,255,0.08);
  color: #fff;

  border: none;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}

/* SOTIB OLISH */
.buy-btn-final {
  flex: 2;

  padding: 16px 0;
  border-radius: 16px;

  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;

  border: none;
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}
.back-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Ikonka va matn orasidagi masofa */
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.back-btn-premium i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Tugma ustiga borganda effektlar */
.back-btn-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #22c55e; /* Yashil neon chizig'i */
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.back-btn-premium:hover i {
    transform: translateX(-5px); /* Ikonka chapga siljiydi */
    color: #22c55e;
}

.back-btn-premium:active {
    transform: scale(0.95);
}
