/* APP THEME START */
@import url('app-mobile.css');
/* APP THEME END */

:root{
  --primary:#ff6a00;          /* marka rengi */
  --primary-700:#c2410c;
  --bg:#f4f5f7;
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --line:#e5e7eb;
  --shadow:0 6px 18px rgba(16,24,40,.08);
  --shadow-2:0 16px 46px rgba(16,24,40,.12);
  --radius:14px;
  --radius-lg:18px;

  /* Geriye dönük uyumluluk */
  --red: var(--primary);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  padding-bottom:68px; /* mobile bottom bar */
}

body.desktop{padding-bottom:0}
body.desktop .bottombar{display:none}
a{color:inherit;text-decoration:none}
.container{max-width:1040px;margin:0 auto;padding:12px}

/* -----------------------
   Topbar
------------------------*/
.topbar{
  position:sticky;top:0;z-index:50;
  background:#fff;
  border-bottom:1px solid rgba(229,231,235,.85);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  padding:10px 12px;
}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:10px}
.brand{font-weight:900;font-size:20px;letter-spacing:.2px;display:flex;align-items:center;gap:8px}
.brand-red{color:var(--primary)}
.brand-black{color:#111827}
.brand-logo{height:28px;max-width:150px;object-fit:contain;display:block}

.city-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;color:#374151;
  border:1px solid var(--line);
  background:#fff;
  padding:7px 10px;border-radius:999px;
}
.city-badge .city{font-weight:700}
.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}
.icon-btn:active{transform:scale(.98)}
.icon{width:20px;height:20px;display:block}
.icon.sm{width:18px;height:18px}

.topbar.back .topbar-inner{
  display:grid;
  grid-template-columns:44px 1fr auto;
}
.topbar.back .topbar-center{
  text-align:center;font-weight:800;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding:0 6px;
  color:var(--primary-700);
}
.topbar.back .icon-btn{width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(229,231,235,.9);;
  color:var(--primary-700);
}

/* Wizard topbar (İlan Ver) */
.topbar.wizard{border-top:3px solid var(--primary)}
.topbar.wizard .topbar-inner{
  display:grid;
  grid-template-columns:44px 1fr auto;
}
.topbar.wizard .topbar-center{
  text-align:center;
  font-weight:950;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:#111827;
}
.topbar-step{
  font-size:12px;
  font-weight:850;
  color:var(--muted);
  padding-right:2px;
  white-space:nowrap;
}

/* Profile topbar (Hesabım) */
.topbar.profile{border-top:0}
.topbar.profile .topbar-inner{gap:12px}
.profile-left{gap:10px}
.topbar-avatar{
  width:34px;height:34px;
  border-radius:999px;
  border:2px solid rgba(255,106,0,.75);
  overflow:hidden;
  background:rgba(255,106,0,.12);
  color:var(--primary-700);
  font-weight:950;
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;
}
.topbar-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.topbar-profile-name{font-weight:950;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* -----------------------
   Alerts
------------------------*/
.alert{padding:10px 12px;border-radius:12px;margin:10px 0;font-size:14px}
.alert.success{background:#ecfdf5;border:1px solid #a7f3d0}
.alert.error{background:#fef2f2;border:1px solid #fecaca}

/* -----------------------
   Section titles
------------------------*/
.section-title{
  display:flex;align-items:flex-end;justify-content:space-between;
  margin:14px 0 10px;
}
.section-title h2{
  margin:0;
  font-size:16px;
  font-weight:900;
  letter-spacing:.1px;
}
.section-title h2:after{
  content:"";
  display:block;
  width:38px;height:3px;border-radius:99px;
  margin-top:6px;
  background:var(--primary);
}
.section-title a{color:var(--primary);font-size:13px;font-weight:700}

/* -----------------------
   Categories
------------------------*/
.categories{
  display:flex;gap:14px;overflow:auto;
  padding:10px 2px 8px;
  margin:4px 0 8px;
  -webkit-overflow-scrolling:touch;
}
.categories::-webkit-scrollbar{display:none}
.cat{
  min-width:74px;
  background:transparent;
  border:0;
  padding:0;
  text-align:center;
  font-size:11px;
  color:#111827;
}
.cat-icon{
  width:46px;height:46px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(229,231,235,.85);
  box-shadow:0 8px 20px rgba(16,24,40,.08);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 6px;
  font-size:22px;
  line-height:1;
}
.cat-label{
  display:block;
  max-width:86px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* -----------------------
   Grid / cards
------------------------*/
.grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
@media (min-width: 900px){
  .grid{grid-template-columns:repeat(4, 1fr);}
}

.card{
  background:var(--card);
  border:1px solid rgba(229,231,235,.92);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
}
.card img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
  background:#eee;
}
.badge{
  position:absolute;top:10px;left:10px;
  background:rgba(255,106,0,.95);
  color:#fff;
  font-size:11px;
  padding:5px 9px;
  border-radius:999px;
  font-weight:800;

  z-index:3;
}
.badge.blue{background:rgba(37,99,235,.92)}
.badge.green{background:rgba(16,185,129,.92)}
.heart{
  position:absolute;top:10px;right:10px;
  width:36px;height:36px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(229,231,235,.95);
  box-shadow:0 8px 22px rgba(16,24,40,.10);
}
.heart .icon{width:18px;height:18px}
.card-body{padding:10px 10px 12px}
.price{color:var(--primary);font-weight:950;font-size:15px}
.meta{color:var(--muted);font-size:12px;margin-top:4px;line-height:1.35}
.dot{margin:0 6px;color:#c1c7d0}
.meta-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.meta-ico{width:14px;height:14px;display:inline-block;vertical-align:-2px;opacity:.8}

/* -----------------------
   Bottom bar
------------------------*/
.bottombar{
  position:fixed;left:0;right:0;bottom:0;z-index:20;
  height:58px;
  background:rgba(255,255,255,.98);
  border-top:1px solid rgba(229,231,235,.92);
  display:flex;justify-content:space-around;align-items:center;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter:saturate(140%) blur(10px);
}
.bb-item{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  color:#374151;
  min-width:56px;
}
.bb-item .bb-text{font-size:10.5px;color:#6b7280;font-weight:650}
.bb-ico{width:20px;height:20px;display:block}
.bb-primary{
  transform:translateY(-8px);
  width:50px;height:50px;
  border-radius:16px;
  background:var(--primary);
  color:#fff;
  box-shadow:0 14px 26px rgba(255,106,0,.24);
}
.bb-primary .bb-ico{width:22px;height:22px}
.bb-primary .bb-text{color:#fff}

/* Icon-only alt menü (metin gizli) */
.bottombar .bb-text{display:none}
.bottombar .bb-item{gap:0}

/* -----------------------
   Forms
------------------------*/
.form{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:var(--radius-lg);
  padding:14px;
  box-shadow:var(--shadow);
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.92);
  outline:none;
  font-size:14px;
  background:#fff;
}
.input:focus{border-color:rgba(255,106,0,.55);box-shadow:0 0 0 4px rgba(255,106,0,.12)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.row1{display:grid;grid-template-columns:1fr;gap:10px}
.btn{
  border:0;border-radius:14px;padding:12px 14px;
  background:#111827;color:#fff;font-weight:800;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.btn:active{transform:scale(.99)}
.btn.red{background:var(--primary)}
.btn.gray{background:#6b7280}
.btn.outline{background:#fff;color:#111827;border:1px solid rgba(229,231,235,.92)}

/* -----------------------
   Detail page
------------------------*/
.detail{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.detail .detail-body{padding:14px}
.price-lg{color:var(--primary);font-weight:950;font-size:28px;line-height:1}
.detail-title{margin:8px 0 6px;font-size:18px;font-weight:950;line-height:1.25}
.detail-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.crumbs{
  background:#fff7ed;
  border:1px solid rgba(251,191,36,.25);
  color:#9a3412;
  padding:10px 12px;
  border-radius:14px;
  font-size:12px;
  overflow:auto;white-space:nowrap;
}
.crumbs a{color:inherit;font-weight:750}
.section-h{
  margin:0 0 10px;
  font-size:15px;
  font-weight:950;
}
.section-h:after{
  content:"";
  display:block;
  width:38px;height:3px;border-radius:99px;
  margin-top:6px;
  background:var(--primary);
}
.hr{height:1px;background:rgba(229,231,235,.92);margin:12px 0}
.small{font-size:12px;color:var(--muted)}
.contactbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn.contact{justify-content:center}

/* -----------------------
   Carousel (shared)
------------------------*/
.carousel{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  touch-action:pan-y;
}
.carousel-track{display:flex;transition:transform .4s ease}
.carousel-slide{min-width:100%;position:relative}
.carousel-slide img{
  width:100%;
  height:170px;

  display:block;
}
.carousel-dots{
  position:absolute;left:0;right:0;bottom:10px;
  display:flex;gap:7px;justify-content:center;
}
.carousel-dot{
  width:7px;height:7px;border-radius:999px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(0,0,0,.10);
}
.carousel-dot.active{background:#fff}
.carousel-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:0px;height:0px;border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#ffffffcc;
  backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;
}


/* Hero carousel size */
.hero-carousel .carousel-slide img{height:140px}
@media(min-width:768px){
  .hero-carousel .carousel-slide img{height:280px}
}

/* Listing detail gallery carousel */
.gallery-carousel{
  border-radius:0;
  border:0;
  background:#0b1220;
}
.gallery-carousel .carousel-slide{
  background:#0b1220;
}
.gallery-carousel .carousel-slide img{
  height:320px;
  object-fit:contain;
  background:#0b1220;
}
@media(max-width:420px){
  .gallery-carousel .carousel-slide img{height:280px}
}

/* Legacy (if still used somewhere) */
.slider{
  display:flex;overflow:auto;gap:12px;
  scroll-snap-type:x mandatory;
  padding:10px 0 6px;
}
.slide{
  min-width:88%;
  scroll-snap-align:start;
  background:#fff;border:1px solid rgba(229,231,235,.92);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);
  padding:14px;
  display:flex;align-items:center;justify-content:space-between;
}
@media(min-width:900px){ .slide{min-width:48%} }


/* Seller card */
.seller-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(229,231,235,.92);border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(16,24,40,.08)}
.seller-avatar{width:44px;height:44px;border-radius:16px;background:rgba(255,106,0,.12);color:var(--primary-700);display:flex;align-items:center;justify-content:center;font-weight:950;font-size:18px}
.seller-name{font-weight:950;color:#111827}

/* -----------------------
   Listing wizard (İlan Ver)
------------------------*/
/* Wizard sayfalarında alttaki sabit bar son alanları kapatmasın */
body.wizard-page{padding-bottom:160px}
body.wizard-page .container{max-width:620px;padding-bottom:0}

.wizard{margin:0}
.wizard-sheet{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  /* Sabit wizard bar + safe-area ile "Yayınla" kısmı kapanmasın */
  padding-bottom:140px;
  min-height:calc(100vh - 190px);
}
.wiz-title{
  margin:6px 0 14px;
  font-size:18px;
  font-weight:950;
  text-align:center;
}
.wiz-subtitle{
  margin:-8px 0 12px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
  font-weight:750;
}
.wiz-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,106,0,.25);
  background:#fff7ed;
  color:var(--primary-700);
  font-weight:900;
  font-size:12px;
  margin:0 auto 10px;
}

.wiz-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.wiz-cat{
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(16,24,40,.10);
  padding:16px 12px;
  min-height:110px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
}
.wiz-cat:active{transform:scale(.99)}
.wiz-cat.active{
  border-color:rgba(255,106,0,.65);
  box-shadow:0 0 0 4px rgba(255,106,0,.14), 0 18px 40px rgba(16,24,40,.10);
}
.wiz-cat-icon{
  width:58px;height:58px;
  border-radius:18px;
  background:rgba(255,106,0,.10);
  border:1px solid rgba(255,106,0,.18);
  display:flex;align-items:center;justify-content:center;
  font-size:30px;
  overflow:hidden;
}
.wiz-cat-icon img{width:100%;height:100%;object-fit:cover;display:block}
.wiz-cat-name{font-weight:900;color:#111827;font-size:14px;text-align:center}

.wiz-list{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.wiz-list-item{
  text-align:left;
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  border-radius:16px;
  padding:14px 14px;
  font-weight:900;
  color:#111827;
  box-shadow:0 12px 26px rgba(16,24,40,.08);
}
.wiz-list-item:active{transform:scale(.99)}
.wiz-list-item.active{border-color:rgba(255,106,0,.65);background:#fff7ed}

.upload-note{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 12px;
  border:1px solid rgba(37,99,235,.35);
  background:#eff6ff;
  border-radius:16px;
  color:#1e3a8a;
  font-size:12px;
  line-height:1.35;
}
.upload-ico{width:18px;height:18px;flex:0 0 auto;margin-top:2px}
.upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.upload-actions .btn{width:100%}
.upload-preview{
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  border-radius:16px;
  padding:10px;
}
.upload-count{font-size:12px;color:var(--muted);font-weight:750;margin-bottom:8px}
.upload-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.upload-item{position:relative;border-radius:12px;overflow:hidden;border:1px solid rgba(229,231,235,.92);background:#f3f4f6}
.upload-item img{width:100%;height:68px;object-fit:cover;display:block}
.upload-item .u-actions{position:absolute;left:6px;right:6px;bottom:6px;display:flex;gap:6px}
.upload-item .u-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;padding:4px 6px;border-radius:10px;border:0;font-size:10px;font-weight:950;cursor:pointer;background:rgba(17,24,39,.78);color:#fff}
.upload-item .u-btn.red{background:rgba(220,38,38,.88)}
.upload-item .u-badge{position:absolute;left:6px;top:6px;background:rgba(255,106,0,.92);color:#fff;font-weight:950;font-size:10px;padding:3px 6px;border-radius:999px}

.wizard-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  height:72px;
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid rgba(229,231,235,.92);
}
.wiz-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:14px;
  padding:10px 12px;
  font-weight:950;
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  color:#111827;
  cursor:pointer;
}
.wiz-btn .icon{width:18px;height:18px}
.wiz-btn.next{
  background:var(--primary);
  color:#fff;
  border-color:rgba(255,106,0,.55);
  box-shadow:0 18px 34px rgba(255,106,0,.26);
}
.wiz-btn.next.publish{padding:10px 14px}
.wiz-dots{display:flex;align-items:center;justify-content:center;gap:7px;flex:1}
.wiz-dot{width:8px;height:8px;border-radius:999px;background:#d1d5db}
.wiz-dot.active{background:var(--primary)}

@media(max-width:380px){
  .upload-grid{grid-template-columns:repeat(4,1fr)}
}

/* -----------------------
   Profile (Hesabım)
------------------------*/
.profile-tabs{
  display:flex;gap:20px;overflow:auto;
  padding:10px 2px 8px;
  margin:4px 0 12px;
  border-bottom:1px solid rgba(229,231,235,.92);
}
.profile-tabs::-webkit-scrollbar{display:none}
.profile-tab{
  padding:8px 2px;
  font-weight:900;
  color:var(--muted);
  white-space:nowrap;
  position:relative;
}
.profile-tab.active{color:var(--primary)}
.profile-tab.active:after{
  content:"";
  position:absolute;left:0;right:0;bottom:-9px;
  height:3px;border-radius:99px;
  background:var(--primary);
}

.profile-card{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
}

.profile-complete{
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  margin:0 0 14px;
}
.profile-complete-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.profile-complete-title{font-weight:950;color:#111827}
.profile-complete-percent{font-weight:950;color:var(--primary)}
.profile-bar{height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden;margin:10px 0 8px}
.profile-bar > span{display:block;height:100%;width:0;background:var(--primary);border-radius:999px}
.profile-missing{margin:6px 0 0;color:#6b7280;font-size:12px;line-height:1.4}
.badge-verified{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#ecfdf5;border:1px solid rgba(16,185,129,.35);color:#047857;font-weight:900;font-size:12px}
.profile-head{display:flex;align-items:center;gap:12px}
.profile-avatar-lg{
  width:78px;height:78px;
  border-radius:999px;
  border:3px solid rgba(255,106,0,.85);
  overflow:hidden;
  background:rgba(255,106,0,.12);
  display:flex;align-items:center;justify-content:center;
  color:var(--primary-700);
  font-weight:950;
  font-size:28px;
  position:relative;
  flex:0 0 auto;
}
.profile-avatar-lg img{width:100%;height:100%;object-fit:cover;display:block}
.profile-online{
  position:absolute;right:6px;bottom:6px;
  width:12px;height:12px;
  border-radius:999px;
  background:#22c55e;
  border:2px solid #fff;
}
.profile-name{font-weight:950;font-size:20px;margin:0}

.profile-stats{
  display:flex;justify-content:space-around;gap:10px;
  padding:12px 0;
  margin:12px 0;
  border-top:1px solid rgba(229,231,235,.92);
  border-bottom:1px solid rgba(229,231,235,.92);
}
.profile-stat{text-align:center}
.profile-stat .num{font-weight:950;font-size:20px;color:var(--primary)}
.profile-stat .lab{font-size:12px;color:var(--muted);font-weight:850}

.profile-info{display:grid;gap:10px}
.profile-info-row{display:flex;align-items:center;gap:10px;color:#374151;font-size:13px}
.profile-info-ico{width:18px;height:18px;color:var(--primary)}

.profile-verify-title{margin:14px 0 8px;font-weight:950}
.profile-verify-icons{display:flex;gap:12px}
.verify-pill{
  width:46px;height:46px;
  border-radius:999px;
  background:rgba(255,106,0,.14);
  border:1px solid rgba(255,106,0,.25);
  display:flex;align-items:center;justify-content:center;
  color:var(--primary-700);
}
.verify-pill .icon{width:22px;height:22px}

.profile-share-btn{
  width:100%;
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,106,0,.25);
  background:#fff7ed;
  color:var(--primary-700);
  font-weight:950;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.profile-share-btn:active{transform:scale(.99)}

/* Profile settings avatar block */
.avatar-edit{display:flex;align-items:center;gap:12px}
.avatar-preview{
  width:76px;height:76px;
  border-radius:999px;
  border:3px solid rgba(255,106,0,.85);
  overflow:hidden;
  background:rgba(255,106,0,.12);
  display:flex;align-items:center;justify-content:center;
  color:var(--primary-700);
  font-weight:950;
  font-size:26px;
  flex:0 0 auto;
}
.avatar-preview img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-actions{display:flex;flex-direction:column;gap:8px;flex:1}


/* v4 marketplace additions */
.old-price{color:#9ca3af;text-decoration:line-through;margin-right:8px;font-weight:700}
.new-price{color:#111827;font-weight:900}
.price-lg .old-price{font-size:16px}
.price-lg .new-price{font-size:22px}

.btn.sm{padding:8px 10px;border-radius:14px;font-size:13px}
.btn.w100{width:100%}

.tabs{display:flex;gap:10px;margin:10px 0}
.tab{flex:1;text-align:center;padding:12px 10px;border-radius:16px;background:#fff;border:1px solid #e5e7eb;color:#111827;font-weight:900;text-decoration:none}
.tab.active{background:#111827;color:#fff;border-color:#111827}
.chip-row{display:flex;gap:8px;overflow:auto;padding:6px 0 10px}
.chip{border:1px solid #e5e7eb;background:#fff;color:#111827;border-radius:999px;padding:10px 12px;font-weight:800;white-space:nowrap}
.chip.active{background:#111827;color:#fff;border-color:#111827}
.pill{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 8px;border-radius:999px;background:#ef4444;color:#fff;font-weight:900;font-size:12px}

.list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.row{display:flex;gap:12px;padding:12px;border:1px solid #e5e7eb;background:#fff;border-radius:18px;text-decoration:none;color:inherit}
.row:hover{border-color:#d1d5db}
.avatar{width:42px;height:42px;border-radius:14px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.row-body{flex:1;min-width:0}
.row-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.row-title{font-weight:950}
.row-time{font-size:12px;color:#6b7280;font-weight:800}
.row-sub{font-size:13px;color:#6b7280;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row-sub .preview{color:#111827;opacity:.9}
.row-right{display:flex;align-items:center}
.dot{opacity:.6}

.status{padding:6px 10px;border-radius:999px;font-weight:900;font-size:12px;border:1px solid #e5e7eb}
.status.pending{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.status.accepted{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.status.rejected{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.status.cancelled{background:#f3f4f6;border-color:#e5e7eb;color:#374151}

.offer-actions{display:flex;gap:10px;margin-top:10px}
.offer-card{border:1px solid #e5e7eb;border-radius:18px;padding:12px;background:#fff}
.offer-title{font-weight:950;margin-bottom:4px}
.offer-quick{display:flex;gap:10px;margin:12px 0}
.offer-quick .chip{flex:1;text-align:center}

.profile-card{border:1px solid #e5e7eb;background:#fff;border-radius:22px;padding:14px}
.profile-top{display:flex;gap:12px;align-items:center}
.profile-avatar{width:56px;height:56px;border-radius:20px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950;overflow:hidden}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-meta{flex:1;min-width:0}
.profile-name{font-weight:950;font-size:18px}
.profile-actions{display:flex;gap:10px;flex-wrap:wrap}
.profile-stats{display:flex;gap:10px;margin-top:12px}
.stat{flex:1;background:#f9fafb;border-radius:18px;padding:10px;text-align:center;border:1px solid #e5e7eb}
.stat-num{font-weight:950;font-size:18px}
.stat-lbl{font-size:12px;color:#6b7280;font-weight:800}

/* Bottom sheet */
body.sheet-open{overflow:hidden}
.sheet{position:fixed;inset:0;z-index:120;display:none}
.sheet.open{display:block}
.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.sheet-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:26px 26px 0 0;border:1px solid rgba(0,0,0,.08);box-shadow:0 -12px 40px rgba(0,0,0,.18);max-height:85vh;display:flex;flex-direction:column}
.sheet-h{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e5e7eb}
.sheet-title{font-weight:950}
.sheet-body{padding:14px;overflow:auto}

.city-list{display:flex;flex-direction:column;gap:10px}
.city-item{padding:12px;border-radius:16px;border:1px solid #e5e7eb;background:#fff;font-weight:900;text-align:left}

/* Chat */
.chat{height:calc(100vh - 120px);display:flex;flex-direction:column}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:10px;border:1px solid #e5e7eb;background:#fff;border-radius:18px}
.chat-sub{font-weight:900;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-actions{display:flex;gap:8px}
.chat-messages{flex:1;overflow:auto;padding:0 12px 8px}
.msg{display:flex;flex-direction:column;margin:8px 0;max-width:82%}
.msg.mine{margin-left:auto;align-items:flex-end}
.msg.theirs{margin-right:auto;align-items:flex-start}
.msg.system{margin-left:auto;margin-right:auto;max-width:94%;align-items:center}
.bubble{padding:12px 14px;border-radius:18px;border:1px solid #e5e7eb;background:#fff;line-height:1.35;font-weight:700}
.msg.mine .bubble{background:#111827;color:#fff;border-color:#111827}
.msg.system .bubble{background:#f3f4f6;border-color:#e5e7eb;color:#374151;border-radius:999px}
.time{font-size:11px;color:#6b7280;margin-top:4px;font-weight:800}
.chat-templates{display:flex;gap:8px;overflow:auto;padding:8px 12px}
.chat-compose{display:flex;gap:10px;padding:10px 12px;border-top:1px solid #e5e7eb;background:#fff;position:sticky;bottom:0}
.chat-compose textarea{flex:1;min-height:44px;max-height:120px;resize:none}

.seller-card{display:flex;gap:12px;align-items:center;border:1px solid #e5e7eb;background:#fff;border-radius:22px;padding:14px}
.seller-avatar{width:52px;height:52px;border-radius:18px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950;overflow:hidden;text-decoration:none}
.seller-avatar img{width:100%;height:100%;object-fit:cover}
.seller-info{flex:1;min-width:0}
.seller-name{font-weight:950;color:#111827;text-decoration:none;display:inline-block}
.seller-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* Toast notifications */
.toast-stack{position:fixed;top:78px;left:12px;right:12px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18);backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px);background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.06);}
.toast .t-ico{width:20px;height:20px;flex:0 0 20px;opacity:.9;margin-top:1px}
.toast .t-body{flex:1;font-weight:750;line-height:1.3}
.toast .t-sub{display:block;margin-top:2px;font-weight:650;opacity:.8;font-size:12px}
.toast.success{border-color:rgba(16,185,129,.28)}
.toast.error{border-color:rgba(239,68,68,.28)}
.toast.info{border-color:rgba(59,130,246,.26)}

/* Toast (v6) */
.toast{opacity:0;transform:translateY(-6px);transition:opacity .18s ease, transform .18s ease;}
.toast.show{opacity:1;transform:translateY(0);}
.toast .toast-msg{flex:1;font-weight:750;line-height:1.3}
.toast .toast-x{border:0;background:transparent;font-size:18px;line-height:1;opacity:.6;cursor:pointer;padding:0 2px}
.toast .toast-x:active{transform:scale(.96)}
/* Notification badge */
.icon-btn{position:relative}
.icon-badge{position:absolute;top:6px;right:6px;min-width:18px;height:18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;padding:0 6px;background:#ef4444;color:#fff;line-height:1;box-shadow:0 6px 18px rgba(239,68,68,.3);}
.icon-badge.hide{display:none}

/* Listing card extras */
.card-link{display:block;color:inherit;text-decoration:none}
.card-media{position:relative;}
.fav-btn{position:absolute;top:10px;right:10px;border:0;background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.07);box-shadow:0 10px 24px rgba(0,0,0,.12);border-radius:999px;padding:8px 10px;display:flex;align-items:center;gap:6px;cursor:pointer;}
.fav-btn .icon{width:20px;height:20px}
.fav-btn[data-liked="1"]{background:rgba(255,255,255,.96)}
.fav-btn[data-liked="1"] .icon path{stroke:#ef4444}
.fav-count{font-size:12px;font-weight:900;opacity:.9}

.card-stats{margin-top:10px;display:flex;gap:10px;justify-content:space-between}
.card-stats .st{flex:1;background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.05);border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;align-items:flex-start;}
.card-stats .st b{font-size:14px}
.card-stats .st span{font-size:11px;font-weight:800;opacity:.75;margin-top:1px}

.card-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.btn.sm{padding:10px 12px;font-size:13px;border-radius:14px}
.pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 12px;font-size:12px;font-weight:900;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06)}

.card-expired{opacity:.92}
.card-expired .badge{background:rgba(239,68,68,.1);color:#ef4444;border-color:rgba(239,68,68,.25)}


.bb-badge{position:absolute;top:4px;right:16px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;line-height:18px;text-align:center;font-weight:800;}
.bb-badge.hide{display:none;}
.bb-item{position:relative;}

.pill.warn{background:#fff7ed;color:#9a3412;border:1px solid #fdba74;}


/* Ad slots */
.ad-slot{margin:12px 0;overflow:hidden;border-radius:14px}
.ad-slot iframe,.ad-slot img{max-width:100%;height:auto}
.ad-slot ins{display:block;width:100%}

/* Bildirimler (modern) */
.empty-state{padding:18px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;text-align:center}
.empty-state .empty-ico{font-size:32px;line-height:1;margin-bottom:8px}
.empty-state .empty-title{font-weight:900;margin-bottom:6px}

.notif-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#f9fafb;margin-bottom:12px}
.notif-actions-right{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.chk-line{display:flex;align-items:center;gap:8px;font-weight:900;color:#111827}
.chk-line input{width:18px;height:18px}

.notif-list{display:flex;flex-direction:column;gap:10px}
.notif-item{display:flex;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#fff}
.notif-left{padding-top:2px}
.notif-check{width:18px;height:18px}
.notif-body{flex:1;min-width:0}
.notif-title{font-weight:900;margin-bottom:2px}
.notif-text{color:#374151;font-size:14px;line-height:1.35}
.notif-meta{margin-top:6px;font-size:12px;color:#6b7280;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.notif-meta .dot{opacity:.7}
.notif-meta a{color:#111827;text-decoration:underline}
.notif-right{display:flex;align-items:flex-start}


/* =========================
   Popup Search (mobile)
========================= */
.search-sheet .sheet-panel-top{
  top:12px;
  bottom:auto;
  margin:0 auto;
  width:min(720px, calc(100% - 24px));
  border-radius:18px;
  max-height:82vh;
}
.searchsheet-head{padding:12px 12px 8px}
.searchbox{
  display:flex;align-items:center;
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  border-radius:18px;
  padding:10px 10px;
  box-shadow:0 10px 30px rgba(16,24,40,.12);
  gap:10px;
}
.searchbox .sb-ico{width:22px;height:22px;color:#9ca3af;flex:0 0 auto}
.sb-input{
  border:0;outline:0;background:transparent;
  flex:1;
  font-size:14px;
}
.sb-clear,.sb-go{
  border:0;background:transparent;
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
}
.sb-go{background:#f97316;color:#fff}
.searchsheet-body{
  padding:6px 12px 14px;
  overflow:auto;
}
.sres{
  display:flex;flex-direction:column;
  gap:10px;
  padding:6px 0 10px;
}
.sitem{
  display:block;
  padding:10px 10px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
}
.sitem:hover{background:#fafafa}
.stitle{font-weight:950;color:#111827}
.smeta{font-size:12px;color:#6b7280;margin-top:2px}

/* =========================
   Category cover images
========================= */
.cat-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.mobile .cat{min-width:68px}
.mobile .cat-icon{width:40px;height:40px;border-radius:14px;font-size:18px}
.mobile .cat-label{max-width:78px}

/* =========================
   Featured horizontal slider
========================= */
.hscroll{
  display:flex;
  gap:4px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:2px 2px 10px;
}
.hscroll::-webkit-scrollbar{display:none}
.hscroll > .card{flex:0 0 48%; scroll-snap-align:start}
@media (min-width: 520px){
  .hscroll > .card{flex-basis:46%}
}
@media (min-width: 900px){
  .hscroll > .card{flex-basis:30%}
}

/* =========================================================
   HESABIM > BANA TAB (2 SÜTUN / PROFESYONEL KUTUCUK)
   - Mevcut yapıyı bozmadan sadece "bana" tab içinde override
   - Hem .list/.row yapısında hem de .grid/.card yapısında çalışır
========================================================= */

/* 1) Eğer içerik .list ise: list'i grid'e çevir */
#bana .list,
.tab-pane#bana .list,
[data-tab="bana"] .list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:10px; /* mevcutla uyum */
}

/* Mobilde tek sütun */
@media (max-width: 576px){
  #bana .list,
  .tab-pane#bana .list,
  [data-tab="bana"] .list{
    grid-template-columns:1fr;
  }
}

/* Grid item: row/kutu görünümü daha kompakt */
#bana .list > .row,
.tab-pane#bana .list > .row,
[data-tab="bana"] .list > .row{
  margin:0;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  box-shadow:var(--shadow);
}

/* Avatar ve tipografi kompakt */
#bana .list > .row .avatar,
.tab-pane#bana .list > .row .avatar,
[data-tab="bana"] .list > .row .avatar{
  width:40px;height:40px;border-radius:14px;
}
#bana .list > .row .row-title,
.tab-pane#bana .list > .row .row-title,
[data-tab="bana"] .list > .row .row-title{
  font-size:14px;
}
#bana .list > .row .row-sub,
.tab-pane#bana .list > .row .row-sub,
[data-tab="bana"] .list > .row .row-sub{
  font-size:12px;
}

/* 2) Eğer içerik .grid/.card ise: 2 sütun + daha küçük kart */
#bana .grid,
.tab-pane#bana .grid,
[data-tab="bana"] .grid{
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 576px){
  #bana .grid,
  .tab-pane#bana .grid,
  [data-tab="bana"] .grid{
    grid-template-columns:1fr;
  }
}
#bana .card img,
.tab-pane#bana .card img,
[data-tab="bana"] .card img{
  height:120px;
}
#bana .card-body,
.tab-pane#bana .card-body,
[data-tab="bana"] .card-body{
  padding:10px 10px 12px;
}
#bana .price,
.tab-pane#bana .price,
[data-tab="bana"] .price{
  font-size:14px;
}
#bana .meta,
.tab-pane#bana .meta,
[data-tab="bana"] .meta{
  font-size:11.5px;
}


/* === Account (Hesabım) tweaks === */


/* Tab: Bana Özel - butonları 2 sütun, daha kompakt */
.page-account.tab-bana .detail{border-radius:20px}
.page-account.tab-bana .row1{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.page-account.tab-bana .row1 > .btn{
  width:100%;
  padding:12px 10px;
  border-radius:16px;
  font-size:13px;
  font-weight:850;
  letter-spacing:.2px;
  min-height:44px;
  justify-content:center;
}
.page-account.tab-bana .row1 > .btn.red{
  grid-column:1 / -1;         /* İlk buton (İlan Ver) tam genişlik */
  min-height:48px;
  font-size:14px;
}
.page-account.tab-bana .row1 > .btn.outline{
  background:#fff;
  border:1px solid rgba(229,231,235,.95);
  box-shadow:0 1px 0 rgba(17,24,39,.03);
}
.page-account.tab-bana .row1 > .btn.outline:active{
  transform:scale(.99);
}

/* Tab: Ürünlerim - ilan kartları 2 sütun + daha “app” görünümü */
.page-account.tab-urunlerim .grid{
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.page-account.tab-urunlerim .app-card{
  border-radius:18px;
  overflow:hidden;
}
.page-account.tab-urunlerim .app-card-media img{
  height:120px;
}
.page-account.tab-urunlerim .card-body{
  padding:10px 12px;
}
.page-account.tab-urunlerim .card-title{
  font-size:13px;
  line-height:1.25;
  margin:0 0 6px 0;
}
.page-account.tab-urunlerim .card-stats{
  gap:8px;
}
.page-account.tab-urunlerim .card-stats .st b{font-size:13px}
.page-account.tab-urunlerim .card-stats .st span{font-size:11px}

/* Tab: Öne Çıkar - kart hissi + detaylar renkli pill */
.page-account.tab-onecikar .row1{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:12px}
.page-account.tab-onecikar .row1 > .detail{margin:0;border-radius:18px;box-shadow:0 8px 22px rgba(17,24,39,.06)}
.page-account.tab-onecikar .feat-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.page-account.tab-onecikar .feat-meta .pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
}
.page-account.tab-onecikar .feat-meta .pill.price{
  border-color:rgba(255,106,0,.25);
  background:rgba(255,106,0,.10);
  color:#b54700;
}
.page-account.tab-onecikar .feat-meta .pill.info{
  border-color:rgba(59,130,246,.25);
  background:rgba(59,130,246,.10);
  color:#1d4ed8;
}
.page-account.tab-onecikar .feat-meta .pill.success{
  border-color:rgba(34,197,94,.25);
  background:rgba(34,197,94,.10);
  color:#15803d;
}
.page-account.tab-onecikar .feat-meta .pill.warn{
  border-color:rgba(239,68,68,.25);
  background:rgba(239,68,68,.10);
  color:#b91c1c;
}

/* Mobilde de 2 sütun kalsın (özellikle Bana Özel & Ürünlerim & Öne Çıkar) */
@media (max-width: 576px){
  .page-account.tab-bana .row1{grid-template-columns:repeat(2, minmax(0,1fr))}
  .page-account.tab-urunlerim .grid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .page-account.tab-onecikar .row1{grid-template-columns:repeat(2, minmax(0,1fr))}
}

/* Alt menü (footer/bottombar): aşağı kaydırınca gizle, yukarı çıkınca göster */
.bottombar{
  will-change:transform;
  transition:transform .22s ease, opacity .22s ease;
}
.bottombar.bb-hide{
  transform:translateY(115%);
  opacity:0;
}


/* -------------------------------------------------------------------------
   Listing Detail - Mobile App Style (ilanlar/detay.php)
   ------------------------------------------------------------------------- */
body.listing-detail-page{padding-bottom:92px}
body.listing-detail-page .detail{margin-top:10px}
body.listing-detail-page .detail-body{padding:14px}
body.listing-detail-page .section-h{margin-top:14px;margin-bottom:10px}
body.listing-detail-page .row{gap:10px}
body.listing-detail-page .btn{border-radius:16px}
body.listing-detail-page .btn.contact{padding:12px 14px}
body.listing-detail-page .seller-card{border-radius:18px}
body.listing-detail-page .gallery-carousel img{border-radius:18px}

.detail-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:110;background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(10px);border-top:1px solid rgba(229,231,235,.92);padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.detail-actionbar-inner{max-width:640px;margin:0 auto;display:flex;gap:10px}
.detail-actionbar-inner .btn{flex:1;height:44px;display:flex;align-items:center;justify-content:center;font-weight:950}

@media (min-width: 900px){
  body.listing-detail-page{padding-bottom:0}
  .detail-actionbar{display:none}
}


.detail-badges{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.pill.pill-type{background:rgba(239,68,68,.10);border:1px solid rgba(239,68,68,.22);color:#b91c1c}

/* -----------------------
   SEO footer blocks
------------------------*/
.seo-footer{
  margin:16px 12px 84px;
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:18px;
  box-shadow: var(--shadow);
}
.seo-footer-inner{
  display:grid;
  gap:12px;
  padding:14px;
}
@media (min-width: 900px){
  .seo-footer{margin:20px auto 24px;max-width:1100px}
  .seo-footer-inner{grid-template-columns:repeat(3, minmax(0,1fr));gap:16px}
}
.seo-footer-col h3{
  margin:0 0 8px 0;
  font-size:13px;
  letter-spacing:.2px;
}
.seo-footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.seo-footer-col li{margin:0}
.seo-footer-col a{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  text-decoration:none;
  font-size:12px;
  font-weight:650;
}
.seo-footer-col a:hover{ text-decoration:underline; }
