/* Hesabım, mesajlaşma ve Güvenli Alışveriş sipariş ekranlarına özel ek stiller (app.css üzerine). */

.account-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.account-main > .page-title { margin-bottom: 0; }
.stat small { display: block; font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.stat a { color: inherit; }

/* Tablo içindeki ilan/sipariş hücresi */
.item-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.item-cell img, .item-cell .ph-sm { flex: 0 0 64px; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--aqua-2); }
.item-cell strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.item-cell a:hover strong { color: var(--primary); }
.item-cell small { display: block; color: var(--slate); font-size: 12px; }
.ph-sm { display: grid; place-items: center; color: var(--primary); font-size: 18px; background: linear-gradient(140deg, #f2fbfa, #e2f4f2); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.reject-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--danger); max-width: 220px; }

/* Aksiyon listesi (genel bakış) */
.action-list { display: flex; flex-direction: column; }
.action-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.action-item:last-child { border-bottom: 0; }
.action-item .grow small { color: var(--slate); font-size: 12px; }
.action-item .item-cell { min-width: 0; flex: 1; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--ink); }
.mini-list a:last-child { border-bottom: 0; }
.mini-list a:hover { background: var(--aqua-2); }
.mini-list .grow strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .grow small { display: block; color: var(--slate); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: 0 0 8px; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-links a { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink); font-weight: 600; font-size: 13.5px; transition: .15s; }
.quick-links a i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--aqua); color: var(--primary); font-size: 16px; }
.quick-links a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* Bildirimler */
.notif-item { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--ink); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.is-unread { background: var(--aqua-2); }
.notif-item .n-ico { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--primary); font-size: 16px; }
.notif-item.is-unread .n-ico { background: var(--primary); color: #fff; }
.notif-item strong { display: block; font-size: 14px; font-weight: 600; }
.notif-item p { margin: 2px 0 0; font-size: 13px; color: var(--slate); }
.notif-item time { font-size: 12px; color: var(--slate); white-space: nowrap; }
a.notif-item:hover { background: var(--aqua); color: var(--ink); }

/* Profil */
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar-edit .avatar { width: 84px; height: 84px; font-size: 28px; }
.avatar-edit .actions { display: flex; flex-direction: column; gap: 6px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.info-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.info-rows > div:last-child { border-bottom: 0; }
.info-rows dt { color: var(--slate); }
.info-rows dd { margin: 0; font-weight: 500; text-align: right; word-break: break-word; }
.store-preview { display: flex; align-items: center; gap: 16px; }
.store-preview .store-logo { margin: 0; }

/* Mesajlaşma */
.chat-item .grow { min-width: 0; flex: 1; }
.chat-item .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11px; color: var(--slate); }
.chat-item.has-unread strong, .chat-item.has-unread small.last { color: var(--ink); font-weight: 600; }
.chat-head .grow { min-width: 0; }
.chat-head strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head small { color: var(--slate); font-size: 12px; }
.chat-head .price { font-size: 15px; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--slate); }
.chat-empty i { font-size: 40px; color: var(--brand); margin-bottom: 12px; }
.chat-day { align-self: center; font-size: 11.5px; color: var(--slate); background: #fff; border: 1px solid var(--border); padding: 3px 10px; border-radius: 12px; }
.chat-back { display: none; }
.chat-safety { font-size: 12px; color: var(--heritage); background: var(--aqua); padding: 8px 16px; border-bottom: 1px solid #cdeeea; display: flex; gap: 8px; align-items: center; }

/* Sipariş */
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.order-head h1 { font-size: 22px; margin: 0 0 4px; }
.order-head .muted { font-size: 13px; }
.order-item { display: flex; gap: 16px; align-items: center; }
.order-item img, .order-item .ph-sm { flex: 0 0 120px; width: 120px; height: 90px; border-radius: var(--radius); object-fit: cover; background: var(--aqua-2); }
.order-item .ph-sm { font-size: 28px; }
.order-item h3 { font-size: 16px; margin: 0 0 4px; }
.order-item h3 a { color: var(--ink); }
.order-item h3 a:hover { color: var(--primary); }
.steps-card { padding: 22px 20px 18px; }
.steps .step-item .dot i { font-size: 14px; }
.steps.is-stopped .step-item.is-current .dot { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.party { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.party:last-child { border-bottom: 0; }
.party small { display: block; color: var(--slate); font-size: 12px; }
.party strong { font-size: 14px; }
.address-box { padding: 14px 16px; background: var(--cloud); border-radius: var(--radius); font-size: 13.5px; line-height: 1.6; }
.address-box strong { display: block; }
.cargo-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.cargo-box i { font-size: 24px; color: var(--primary); }
.cargo-box strong { display: block; }
.cargo-box code { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--petrol); background: var(--aqua); padding: 2px 8px; border-radius: 5px; }
.action-box { border: 1.5px solid var(--brand); background: linear-gradient(135deg, #fbfefe, var(--aqua-2)); }
.action-box .card-head h3 i { color: var(--primary); margin-right: 6px; }
.action-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Ödeme / checkout */
.checkout-item { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.checkout-item img, .checkout-item .ph-sm { flex: 0 0 88px; width: 88px; height: 70px; border-radius: var(--radius); object-fit: cover; background: var(--aqua-2); }
.checkout-item strong { display: block; font-size: 14px; line-height: 1.35; }
.checkout-item small { display: block; color: var(--slate); font-size: 12px; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--slate); margin-top: 14px; }
.secure-note i { color: var(--success); margin-top: 2px; }
.expertise-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; cursor: pointer; transition: .15s; }
.expertise-option:has(input:checked) { border-color: var(--primary); background: var(--aqua-2); }
.expertise-option .eo-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua); color: var(--primary); font-size: 18px; }
.expertise-option strong { display: block; font-size: 14.5px; }
.expertise-option p { margin: 2px 0 0; font-size: 12.5px; color: var(--slate); }
.expertise-option .switch { margin-left: auto; }
.pay-card { max-width: 680px; margin: 0 auto; }
.pay-total { text-align: center; padding: 24px 20px; background: var(--aqua-2); border-radius: var(--radius-lg); margin-bottom: 18px; }
.pay-total small { color: var(--slate); }
.pay-total b { display: block; font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--petrol); line-height: 1.15; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Cüzdan */
.wallet-hero .wh-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.wallet-hero .wh-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.wallet-hero .wh-stats b { display: block; font-family: var(--font-head); font-size: 17px; }
.wallet-hero .wh-stats small { font-size: 12px; }
.amt-plus { color: var(--success); font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.amt-minus { color: var(--danger); font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.tx-type { display: flex; align-items: center; gap: 10px; }
.tx-type i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); color: var(--primary); font-size: 13px; flex: 0 0 32px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; letter-spacing: .02em; }

@media (max-width: 1100px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chat-back { display: inline-flex; }
  .action-item { flex-wrap: wrap; padding: 12px 14px; }
  .action-item .btn { width: 100%; }
  .order-item img, .order-item .ph-sm { flex-basis: 88px; width: 88px; height: 70px; }
  .table-cards .item-cell { min-width: 0; }
  .table-cards td.row-actions-cell { justify-content: flex-start; }
  .table-cards td .row-actions { justify-content: flex-start; }
  .pay-total b { font-size: 28px; }
  .expertise-option { flex-wrap: wrap; }
}

/* display:flex kuralları [hidden] özniteliğini ezmesin */
.summary-row[hidden], .account-main [hidden] { display: none !important; }

/* ==========================================================================
   Arama önerileri, kayıtlı aramalar ve son gezilen ilanlar (search.js)
   ========================================================================== */
.search-form.sg-enhanced { position: relative; overflow: visible; }
.header-main .search-form.sg-enhanced > button { border-radius: 0 5px 5px 0; }
.sg-panel { position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; z-index: 130; display: none; padding: 6px; max-height: min(70vh, 540px); overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: left; }
.sg-panel.is-open { display: block; }
.sg-panel.is-loading { opacity: .85; }
.sg-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.sg-head button { padding: 0; border: 0; background: none; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sg-opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.sg-opt:hover, .sg-opt.is-active { background: var(--aqua-2); color: var(--ink); }
.sg-opt.is-active { box-shadow: inset 2px 0 0 var(--primary); }
.sg-ico { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--aqua); color: var(--primary); font-size: 13px; }
.sg-ico-muted { background: var(--cloud); color: var(--slate); }
.sg-opt img, .sg-thumb { flex: 0 0 48px; width: 48px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--aqua-2); display: grid; place-items: center; color: var(--primary); font-size: 14px; }
.sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sg-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sg-main small { color: var(--slate); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sg-meta { margin-left: auto; color: var(--slate); font-size: 12px; white-space: nowrap; }
.sg-price { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--price); white-space: nowrap; }
.sg-go { margin-left: auto; color: var(--slate); font-size: 10px; }
.sg-opt mark { padding: 0; background: transparent; color: var(--primary); font-weight: 700; }
.sg-all { justify-content: center; gap: 8px; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; color: var(--primary); font-weight: 600; }
.sg-all:hover, .sg-all.is-active { color: var(--primary-hover); }
.sg-count { min-width: 22px; height: 20px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--aqua); font-size: 11px; font-weight: 700; }
.sg-empty, .sg-loading { padding: 18px 12px; text-align: center; color: var(--slate); font-size: 13px; }
.sg-loading i { color: var(--primary); margin-right: 6px; }
@media (max-width: 900px) {
  .mh-search .sg-panel { left: 0; right: auto; width: calc(100vw - 28px); max-height: 62vh; }
  .sg-opt { min-height: 46px; }
}

/* "Aramayı Kaydet" çubuğu */
.save-search { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px 10px 14px; background: var(--aqua-2); border: 1px solid #cdeeea; border-radius: var(--radius); }
.save-search .ss-ico { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--primary); font-size: 14px; }
.save-search .ss-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.save-search .ss-text strong { font-size: 13.5px; color: var(--petrol); }
.save-search .ss-text span { font-size: 12.5px; color: var(--heritage); }
.save-search form { margin: 0; }
.save-search .btn-outline { background: #fff; }
.save-search.is-saved .ss-ico { background: var(--primary); color: #fff; }
@media (max-width: 520px) {
  .save-search { flex-wrap: wrap; }
  .save-search .ss-text span { display: none; }
}

/* Kayıtlı aramalarım */
.ss-list { display: flex; flex-direction: column; gap: 12px; }
.ss-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ss-card-main { display: flex; gap: 14px; align-items: flex-start; }
.ss-card .ss-ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--aqua); color: var(--primary); }
.ss-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ss-card-title a { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.ss-card-title a:hover { color: var(--primary); }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ss-chips span { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--cloud); border: 1px solid var(--border); font-size: 12px; color: var(--heritage); }
.ss-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.ss-card-actions form { margin: 0; }
.ss-rename { position: relative; }
.ss-rename > summary { list-style: none; }
.ss-rename > summary::-webkit-details-marker { display: none; }
.ss-rename-form { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: flex; gap: 6px; width: min(340px, 80vw); padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.ss-del { color: var(--danger); margin-left: auto; }
.ss-card-actions form:last-child { margin-left: auto; }
@media (max-width: 520px) {
  .ss-card-actions .btn-primary { width: 100%; }
  .ss-rename-form { left: auto; right: 0; }
}

/* Son gezdiğiniz ilanlar (ana sayfa) */
.rv-clear { padding: 0; border: 0; background: none; cursor: pointer; }
.rv-list { gap: 12px; }
.rv-card { flex: 0 0 168px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.rv-card:hover { color: var(--primary); }
.rv-img { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; background: var(--aqua-2); border: 1px solid var(--border); color: var(--primary); font-size: 22px; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.rv-card:hover .rv-img img { transform: scale(1.04); }
.rv-title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-price { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--price); }
@media (max-width: 900px) { .rv-card { flex-basis: 140px; } }

/* Hesabım: profil tamamlama kartı */
.completion-card { border-color: var(--brand); background: linear-gradient(135deg, var(--aqua-2), #fff 60%); }
.completion-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.completion-head h2 { font-size: 16px; margin: 0 0 2px; }
.completion-head h2 span { color: var(--primary); margin-left: 6px; }
.completion-head p { margin: 0; font-size: 13px; color: var(--slate); max-width: 520px; }
.completion-bar { flex: 0 0 220px; height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; }
.completion-bar span { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.completion-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.completion-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink); }
.completion-steps a:hover { border-color: var(--primary); color: var(--primary); }
.completion-steps a > i:first-child { color: var(--primary); }
.completion-steps .go { font-size: 10px; color: var(--slate); }
@media (max-width: 640px) {
  .completion-bar { flex-basis: 100%; }
  .completion-steps a { flex: 1 1 100%; }
  .completion-steps .go { margin-left: auto; }
}
