:root{
  --bg:#0d1712; --fg:#eaf9ef;
  --mint:#8affb4; --mint2:#bfffe0; --mint3:#9effb9;
  --glass:rgba(16,40,28,.55); --stroke:rgba(120,255,180,.28);
  --glow:rgba(0,255,140,.14); --card:#0f1c15;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  overflow-x:hidden;
}

/* ===== HEADER ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, rgba(8,18,13,.92), rgba(8,18,13,.55));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(120,255,180,.10);
}
.hdr-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.top-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:9px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#c9ffe5;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg,rgba(18,50,36,.55),rgba(12,36,26,.55));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 10px 22px rgba(0,0,0,.28),0 0 10px var(--glow);
  transition:.15s;
  white-space:nowrap;
}
.top-btn:hover{transform:translateY(-1px); border-color:#37ff9b}
.top-btn.pro{letter-spacing:.2px; font-weight:700}
.top-btn .ico{
  width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  border:1px solid rgba(120,255,180,.30);
  background:rgba(0,255,140,.06);
  color:#bfffe0;
  font-size:13px;
  line-height:1;
}

/* ✅ FORSLU ADMİN BUTONU */
.admin-btn{
  border-color: rgba(255,215,0,.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 14px 30px rgba(0,0,0,.35),
    0 0 28px rgba(255,215,0,.14);
  background: linear-gradient(180deg, rgba(80,60,10,.55), rgba(18,12,2,.55));
}
.admin-btn:hover{
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255,215,0,.65) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 18px 40px rgba(0,0,0,.42),
    0 0 36px rgba(255,215,0,.22);
}

.brand{
  flex:1;
  text-align:center;
  padding:2px 8px;
  min-width:0;
}
.brand-title{
  font-weight:900;
  letter-spacing:1.6px;
  font-size:clamp(22px, 2.8vw, 40px);
  background:linear-gradient(90deg,var(--mint),#c8ffe0,var(--mint));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 18px var(--stroke);
  line-height:1.05;
}
.brand-sub{
  margin-top:6px;
  font-size:clamp(12px, 1.2vw, 14px);
  color:#aaffcc;
  opacity:.9;
  letter-spacing:.8px;
}
.brand-line{
  height:2px;
  margin:10px auto 0;
  width:min(720px, 62vw);
  background:linear-gradient(90deg,transparent,#00ff99,transparent);
  box-shadow:0 0 14px rgba(0,255,150,.35);
}

/* 3 buton */
.hdr-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===== LAYOUT ===== */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 14px 18px;
}

/* ===== FILTERS ===== */
.filters{
  margin-top:18px;
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:0 0 22px rgba(0,255,120,.14);
  padding:14px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
}
.filters-left{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 190px));
  gap:10px;
}
.filters select{
  width:100%;
  background:rgba(12,30,21,.80);
  border:1px solid rgba(120,255,180,.35);
  color:var(--mint2);
  padding:10px 12px;
  font-size:13px;
  font-weight:800;
  border-radius:12px;
  text-transform:uppercase;
}
.filters-right{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:nowrap;
}
.range{width:260px}
.range-label{
  text-align:center;
  font-size:12px;
  color:var(--mint3);
  margin-bottom:6px;
  font-weight:800;
}
input[type="range"]{
  -webkit-appearance:none; appearance:none;
  width:100%;
  height:12px;
  border-radius:10px;
  border:1px solid rgba(120,255,180,.3);
  background:linear-gradient(90deg,#00ff99,#00cc77);
  outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:18px;height:18px;border-radius:50%;
  background:#e5fff1;border:2px solid #00e68a;
}
input[type="range"]::-moz-range-thumb{
  width:18px;height:18px;border-radius:50%;
  background:#e5fff1;border:2px solid #00e68a;
}

/* ===== MARQUEE ===== */
.marquee{
  margin:14px 0 6px;
  border-top:1px solid rgba(120,255,180,.12);
  border-bottom:1px solid rgba(120,255,180,.12);
  box-shadow:0 0 18px rgba(0,255,150,.12);
  background:linear-gradient(90deg,#0f2e1f,#103625,#0f2e1f);
  overflow:hidden;
  border-radius:14px;
}
.marquee-track{
  white-space:nowrap;
  display:inline-block;
  padding:10px 14px;
  color:#bfffe0;
  animation:marquee 22s linear infinite;
}
@keyframes marquee{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* ===== CARDS ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-top:14px;
}
.card{
  cursor:pointer;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(120,255,180,.25);
  background:radial-gradient(circle at top,rgba(0,255,160,.10),var(--card));
  box-shadow:0 12px 30px rgba(0,0,0,.55);
  transition:transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover{transform:translateY(-2px); box-shadow:0 0 25px rgba(0,255,140,.25); border-color:#37ff9b}
.card-img img{
  display:block;
  width:100%;
  height:190px;
  object-fit:cover;
}
.card-body{padding:12px 12px}
.card-title{font-weight:900; color:#d7ffe8; font-size:14px; line-height:1.25}
.card-meta{margin-top:6px; color:#aaffcc; opacity:.92; font-size:12px}
.card-price{margin-top:8px; font-weight:900; color:#9effc9; font-size:15px}

/* ✅ EKLENDİ: Teklif Ver butonu (offer-link) — kart içinde premium görünüm */
.offer-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(120,255,180,.30);
  background:
    radial-gradient(120px 60px at 35% 25%, rgba(0,255,160,.18), transparent 60%),
    linear-gradient(180deg, rgba(18,50,36,.55), rgba(12,36,26,.55));
  color:#eafff2;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 10px 22px rgba(0,0,0,.28),
    0 0 14px rgba(0,255,140,.10);
  transition:transform .16s, box-shadow .16s, border-color .16s, filter .16s, opacity .16s;
}
.offer-link:hover{
  transform:translateY(-1px);
  border-color:#37ff9b;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 14px 30px rgba(0,0,0,.36),
    0 0 22px rgba(0,255,140,.18);
  filter:saturate(1.06);
}
.offer-link:active{transform:translateY(0)}
.offer-link:focus{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(0,255,160,.18),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 14px 30px rgba(0,0,0,.36);
}

/* ✅ EKLENDİ: card-link içinde link görünümü bozulmasın */
.card a{ color:inherit; text-decoration:none; }
.card a:hover{ text-decoration:none; }

/* ===== PAGINATION ===== */
.pagination{color:#c8ffd9; text-align:center; padding:16px 0}

/* ===== MODAL ===== */
.modal{position:fixed; inset:0; z-index:9999; display:none}
.modal.open{display:block}
.modal-bg{
  position:absolute; inset:0;
  background:rgba(0,0,0,.74);
  backdrop-filter: blur(6px);
}
.modal-box{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(980px, 94vw);
  max-height:92vh;
  overflow:auto;
  background:rgba(14,32,22,.92);
  border:1px solid rgba(120,255,180,.35);
  border-radius:18px;
  box-shadow:0 0 35px var(--glow),0 0 80px rgba(0,255,140,.10);
  padding:16px;
}
.modal-close{
  position:sticky; top:10px; float:right;
  border:none;
  width:44px;height:44px;border-radius:10px;
  background:#24b96f;color:#fff;
  font-size:18px;font-weight:900;
}
.modal-title{
  text-align:center;
  font-weight:900;
  letter-spacing:1.2px;
  color:#9effc9;
  margin:6px 0 14px;
}
.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.modal-media img{
  width:100%;
  height:min(480px, 56vh);
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(120,255,180,.20);
}
.modal-h{font-weight:900; font-size:18px; color:#d7ffe8; margin:2px 0 10px}
.modal-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:12px;
}
.modal-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(120,255,180,.12);
  background:rgba(255,255,255,.03);
  font-size:13px;
}
.modal-table td:first-child{font-weight:900; color:#aaffcc; width:45%}
.modal-desc{
  padding:12px;
  border:1px solid rgba(120,255,180,.18);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.modal-desc-h{font-weight:900; color:#9effc9; margin-bottom:6px}
.modal-desc-p{color:#eaf9ef; opacity:.95; font-size:13px; line-height:1.6}

/* ===== RESPONSIVE ===== */
@media (max-width:1023px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .filters{flex-direction:column; align-items:stretch}
  .filters-left{grid-template-columns:1fr;}
  .filters-right{flex-direction:column; align-items:stretch}
  .range{width:100%}

  /* ✅ EKLENDİ: mobil/tablet teklif butonu tam otursun */
  .offer-link{ width:100%; }
}

@media (max-width:768px){
  .cards{grid-template-columns:1fr}
  .modal-grid{grid-template-columns:1fr}
  .modal-media img{height:min(360px, 42vh)}

  /* HEADER MOBILE FIX */
  .hdr-inner{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px 14px;
  }
  .brand{ text-align:center; }
  .brand-line{ width:100%; max-width:520px; }
  .hdr-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .hdr-actions .top-btn{
    width:100%;
    white-space:normal;
    padding:10px 12px;
  }
  .top-btn .ico{width:20px;height:20px;font-size:12px}
}
/* ✅ Son Teklif etiketi */
.card-lastoffer{
  margin-top:8px;
  font-weight:900;
  color:#bfffe0;
  font-size:12px;
  opacity:.95;
  display:flex;
  gap:6px;
  align-items:center;
}
.card-lastoffer .js-son-teklif{
  color:#ffd86b;
  text-shadow:0 0 12px rgba(255,216,107,.18);
}