/* =============================================================================
   style.css'e ek — tasarımın PHP sürümü için düzeltmeler ve yeni ekranlar.
   Tasarımın token'larını (--card, --border, --accent…) kullanır.
   ========================================================================== */

/* ── Düzeltmeler ───────────────────────────────────────────────────────── */
/* Yedeksiz "font: … Archivo" kuralları font yüklenene kadar serif'e düşüyordu. */
.initial { font-family: 'Archivo', sans-serif; }
.offer-number { font-family: 'Archivo', sans-serif; }
.offer-code { font-family: 'Archivo', sans-serif; }
.price small { font-family: 'IBM Plex Sans', sans-serif; }

/* Tasarımda <button> olan bazı öğeler burada bağlantı (<a>). */
.popular-search a { padding: 0; border-bottom: 1px solid var(--border); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); min-width: 50px; }
.mobile-nav a.active { color: var(--blue); }
.account-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 10px; color: var(--muted); border-radius: 11px; }
.account-menu a.active { color: var(--accent); background: #55b0f615; }
.account-menu a:hover, .account-menu button:hover { background: #55b0f60c; }
a.filter, a.btn, a.icon-btn, a.text-btn { cursor: pointer; }
a.filter { display: inline-block; }
.firm-cover.full, a.firm-cover { width: 100%; }
.product h3 a:hover, .firm-body h3 a:hover, .cleaner-card h3 a:hover { color: var(--accent); }
.product-picture { overflow: hidden; }
.product-picture .placeholder small { font-size: 11px; color: #4b6b9a; }
.product .add:disabled { opacity: .35; cursor: not-allowed; }
.star-off { color: var(--border); }
body.light .star-off { color: #00267822; }
.btn.danger { background: #e23744; box-shadow: none; }
.btn.sm { padding: 10px 14px; font-size: 12px; }
.text-btn { cursor: pointer; }
.login-btn { padding: 11px 16px; }
.login-btn svg { width: 17px; height: 17px; }
[hidden] { display: none !important; }

.service-choice.on { border-color: #55b0f6aa; background: #55b0f612; }
.account-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.stat:hover { border-color: #55b0f64d; }

/* Sayfa üst gezinmesi */
.breadcrumbs a:hover { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

/* ── Ortak ─────────────────────────────────────────────────────────────── */
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin: 12px 0; }
.kv span:first-child { color: var(--muted); }
.kv strong { text-align: right; }
.success-text { color: #7ee0b0; }
body.light .success-text { color: #0d9488; }
.tag { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; }
.thumb { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 86%; height: 86%; object-fit: contain; }
.thumb svg { color: #4b6b9a; }
.thumb.sm { width: 40px; height: 40px; border-radius: 9px; }
.stepper .st-val { padding: 0 8px; min-width: 26px; text-align: center; font-weight: 600; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

/* Seçilebilir kart (teslimat, ödeme, uzman) */
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
  border: 1px solid var(--border); border-radius: 15px; background: var(--card); margin-bottom: 10px;
}
.choice.on { border-color: #55b0f6aa; background: #55b0f612; }
.choice .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; }
.choice.on .radio { border: 6px solid #55b0f6; }
.choice .grow { flex: 1; min-width: 0; }
.choice strong { font-size: 14px; display: block; }
.choice small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.55; cursor: pointer; text-align: left; }
.check-row .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); flex-shrink: 0; display: grid; place-items: center; color: transparent; }
.check-row .box svg { width: 14px; height: 14px; stroke-width: 2.4; }
.check-row.on .box { background: linear-gradient(135deg, #55b0f6, #2b74d8); border-color: transparent; color: #fff; }

/* Anahtar (toggle) */
.switch { width: 44px; height: 26px; border-radius: 13px; padding: 3px; background: #ffffff22; display: inline-flex; flex-shrink: 0; transition: background .2s; }
body.light .switch { background: #00267822; }
.switch .knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px -1px #0006; }
.switch.on { background: linear-gradient(135deg, #55b0f6, #2b74d8); }
.switch.on .knob { transform: translateX(18px); }
.switch:disabled { opacity: .35; cursor: not-allowed; }

/* ── Ürün detayı ───────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.product-detail .detail-image { height: 460px; position: sticky; top: 115px; margin: 0; }
.product-detail .detail-image { overflow: hidden; }
.product-detail .detail-image .discount { position: absolute; }
.product-detail .detail-image img { height: 380px; max-height: 84%; width: 82%; object-fit: contain; mix-blend-mode: multiply; }
.product-detail .detail-image .placeholder { color: #4b6b9a; display: grid; place-items: center; gap: 10px; }
.product-detail h1 { font-size: 34px; letter-spacing: -1px; margin: 12px 0 10px; }
.product-detail .big-price { font: 800 34px 'Archivo', sans-serif; color: var(--accent); }
.buy-row { display: flex; gap: 14px; align-items: center; margin: 24px 0; }
.buy-row .stepper button { padding: 13px 16px; }
.buy-row .btn { flex: 1; padding: 15px 20px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar { width: 38px; height: 38px; font-size: 13px; border-width: 2px; }
.review p { font-size: 13px; margin-top: 10px; }

/* ── Firma / uzman detayı ──────────────────────────────────────────────── */
.profile-hero {
  border-radius: 24px; overflow: hidden; position: relative; min-height: 220px; color: #fff;
  display: flex; align-items: flex-end; padding: 32px; border: 1px solid var(--border);
}
.profile-hero:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #060914dd); }
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero .initial { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
.profile-hero h1 { font-size: 34px; margin: 0; }
.profile-hero p { color: #c9d6f2; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.stat strong { font-size: 22px; color: var(--accent); display: block; }
.stat span { font-size: 12px; color: var(--muted); }
.service-line { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.service-line:last-child { border-bottom: 0; }
.service-line .grow { flex: 1; min-width: 0; }
.service-line h3 { font-size: 15px; }
.service-line p { font-size: 12px; margin-top: 4px; }
.cleaner-hero { text-align: center; }
.cleaner-hero .avatar { width: 96px; height: 96px; font-size: 30px; margin: 0 auto 16px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week .day { border: 1px solid var(--border); border-radius: 12px; padding: 12px 4px; text-align: center; font-size: 11px; color: var(--muted); }
.week .day strong { display: block; font-size: 18px; color: var(--text); margin: 4px 0; }
.week .day.full { opacity: .45; }

/* ── Randevu ───────────────────────────────────────────────────────────── */
.part-pills { display: flex; gap: 8px; margin-top: 4px; }
.part-pills .filter { flex: 1; text-align: center; }
.slot { color: var(--text); }
.slot small { color: inherit; }
.slot.active small { opacity: .85; }
.pick-list { display: grid; gap: 10px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.pick.on { border-color: #55b0f6aa; background: #55b0f612; }
.pick .avatar { width: 48px; height: 48px; font-size: 15px; flex-shrink: 0; }
.pick .grow { flex: 1; min-width: 0; }
.pick h3 { font-size: 14px; }
.pick p { font-size: 11px; margin-top: 3px; }
.pick .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; }
.pick.on .radio { border: 6px solid #55b0f6; }
.sort-row { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.sort-row .filter { padding: 8px 12px; }
.anyone { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.anyone .grow { flex: 1; }
.anyone strong { font-size: 14px; display: block; }
.anyone small { font-size: 12px; color: var(--muted); }
.solo-card { display: flex; align-items: center; gap: 16px; }
.solo-card .avatar { width: 64px; height: 64px; font-size: 20px; }
.extra-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.extra { flex: 0 0 168px; border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.extra .pic { height: 92px; background: #fff; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.extra .pic img { width: 80%; height: 80%; object-fit: contain; }
.extra h4 { font: 600 12px 'Archivo', sans-serif; margin: 0; min-height: 30px; }
.extra .row { margin: 0; }
.extra .price { font-size: 15px; }
.coupon { color: #7ee0b0; background: #34d3990d; border: 1px solid #34d39926; padding: 10px 12px; border-radius: 10px; font-size: 12px; margin: 14px 0 0; }

/* ── Randevularım / siparişlerim ───────────────────────────────────────── */
.date-block { width: 54px; height: 58px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, #55b0f6, #2b74d8); color: #fff; }
.date-block strong { font-size: 20px; line-height: 1; }
.date-block span { font-size: 10px; margin-top: 4px; letter-spacing: .06em; }
.date-block.past { background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.date-block.past strong { color: var(--text); }
.appt-head { display: flex; gap: 16px; align-items: center; }
.appt-head .grow { flex: 1; min-width: 0; }
.appt-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.appt-meta span { display: inline-flex; align-items: center; gap: 6px; }
.appt-meta svg { width: 15px; height: 15px; }
.appt-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order-items { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.order-items p { font-size: 12px; margin-left: 4px; flex: 1; min-width: 0; }

/* ── Hesap ─────────────────────────────────────────────────────────────── */
.account-menu .count-pill { margin-left: auto; font-size: 10px; color: var(--accent); background: #55b0f61a; border-radius: 10px; padding: 2px 8px; }
.account-head { display: flex; align-items: center; gap: 18px; }
.account-head .avatar { width: 72px; height: 72px; font-size: 22px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.theme-seg { display: flex; gap: 8px; }
.theme-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--card); font-size: 12px; }
.theme-seg button.on { color: var(--accent); border-color: #55b0f67a; background: #55b0f620; }
.theme-seg svg { width: 16px; height: 16px; }
.addr { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); cursor: pointer; }
.addr.on { border-color: #55b0f6aa; background: #55b0f60e; }
.addr .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #55b0f61a; color: var(--accent); flex-shrink: 0; }
.addr .grow { flex: 1; min-width: 0; }
.addr h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.addr p { font-size: 12px; margin-top: 4px; }
.addr .ops { display: flex; gap: 14px; margin-top: 12px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .span2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid textarea { width: 100%; display: block; margin-top: 8px; resize: vertical; }
.field-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
input.field:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); }
.form-section { font: 700 11px 'Archivo', sans-serif; letter-spacing: 1.4px; color: var(--accent); margin: 26px 0 16px; display: flex; align-items: center; gap: 12px; }
.form-section:after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Ürün yönetimi / ürünlerim */
.catalog-row { cursor: pointer; }
.catalog-row.on h3 { color: var(--accent); }
.catalog-row.out { opacity: .55; }
.catalog-row .chk { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.catalog-row.on .chk { background: linear-gradient(135deg, #55b0f6, #2b74d8); border-color: transparent; color: #fff; }
.catalog-row .chk svg { width: 14px; height: 14px; stroke-width: 2.4; }
.catalog-row .side { display: flex; align-items: center; gap: 12px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; margin-top: 18px; padding: 16px 0 4px; background: linear-gradient(transparent, var(--bg) 35%); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.info-note { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #55b0f610; border: 1px solid #55b0f630; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.info-note svg { color: var(--accent); }

/* Ekip */
.team-row .avatar { width: 46px; height: 46px; font-size: 14px; }
.team-row .dot-st { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ── Giriş / kayıt ─────────────────────────────────────────────────────── */
.auth-wrap { max-width: 460px; margin: 10px auto 40px; }
.auth-wrap .panel { padding: 36px; }
.auth-wrap h1 { font-size: 30px; letter-spacing: -1px; }
.auth-wrap .sub { margin: 8px 0 26px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 13px; }
.auth-tabs button.on { color: var(--accent); border-color: #55b0f67a; background: #55b0f620; }
.auth-field { display: block; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.auth-field .box { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.auth-field .box:focus-within { border-color: var(--blue); }
.auth-field .box svg { color: var(--accent); width: 18px; height: 18px; }
.auth-field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); padding: 14px 0; outline: 0; }
.auth-field .prefix { font: 700 14px 'Archivo', sans-serif; color: var(--muted); padding-right: 10px; border-right: 1px solid var(--border); }
.auth-field .eye { color: var(--muted); display: grid; place-items: center; }
.auth-or { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); margin: 22px 0; }
.auth-or:before, .auth-or:after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.auth-foot a { color: var(--accent); font-weight: 700; }

/* ── Panel seçimi (bir kullanıcı adına bağlı birden çok hesap) ──────────── */
.sec-wrap { max-width: 900px; }
.sec-wrap .sub { margin-bottom: 4px; }
.sec-group { margin-top: 26px; }
.sec-group-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.sec-group-head svg { width: 18px; height: 18px; color: var(--accent); }
.sec-group-head h2 { font-size: 15px; letter-spacing: -.2px; }
.sec-group-head small { color: var(--muted); font-size: 12px; }
.sec-group-head .sec-say { margin-left: auto; flex-shrink: 0; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 12px; }
.sec-grid form { margin: 0; display: flex; }
.sec-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 15px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text); transition: border-color .2s, background .2s, transform .2s; }
.sec-card:hover { filter: none; border-color: #55b0f67a; background: #55b0f614; transform: translateY(-2px); }
.sec-card .sec-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; background: #55b0f61f; border: 1px solid #55b0f633; color: var(--accent); }
.sec-card .sec-txt { min-width: 0; }
.sec-card .sec-txt strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.sec-card .sec-txt small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.sec-card .sec-go { margin-left: auto; flex-shrink: 0; color: var(--muted); }
.sec-card:hover .sec-go { color: var(--accent); }
@media (max-width: 800px) { .sec-group-head small { display: none; } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }

/* ── Mobil ─────────────────────────────────────────────────────────────── */
@media (max-width: 1150px) {
  .login-btn span { display: none; }
}
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .product-detail .detail-image { height: 300px; position: relative; top: auto; }
  .product-detail h1 { font-size: 26px; }
  .profile-hero { padding: 22px; min-height: 180px; }
  .profile-hero h1 { font-size: 26px; }
  .stat-row, .account-stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 17px; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .form-grid .span2 { grid-column: 1 / -1; }
  .auth-wrap .panel { padding: 24px; }
  .catalog-row .side { gap: 8px; }
  .login-btn { padding: 10px 12px; }
}
@media (max-width: 430px) {
  .form-grid.three { grid-template-columns: repeat(3, 1fr); }
  .buy-row { flex-wrap: wrap; }
}

/* ── Tasarım düzeltmeleri ──────────────────────────────────────────────── */
/* Bölüm başlığındaki "Tümünü gör" bağlantıları dar ekranda iki satıra kırılmasın. */
.section-head .text-btn { white-space: nowrap; flex-shrink: 0; }
/* Açık tema: koyu yarı saydam zeminler griye dönüyordu, beyaz buton beyaz kartta kayboluyordu. */
body.light .discovery-hero { background: linear-gradient(110deg, #ffffff, #e4eeff); }
body.light .appointment .btn.white { background: var(--accent); color: #fff; }
body.light .initial { background: #246fca17; }
/* Ürün kartında fiyat satırı her zaman kartın dibine otursun. */
.product { display: flex; flex-direction: column; }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product .product-bottom { margin-top: auto; padding-top: 14px; }
@media (max-width: 800px) {
  .product-detail .detail-image img { height: 250px; }
  .page-heading .badge { display: none; }
  /* 1fr = minmax(auto,1fr): kaydırmalı tarih şeridi sütunu ekrandan taşırıyordu. */
  .dashboard-grid, .two-col, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .service-line { flex-wrap: wrap; row-gap: 10px; }
  .service-line .grow { flex-basis: calc(100% - 60px); }
  .service-line .price { margin-left: 44px; }
  .service-line .btn { margin-left: auto; }
}
@media (max-width: 800px) {
  /* Hesap menüsü yatay şerit: bağlantılar tam genişlik olunca şerit şişiyordu. */
  .account-menu { padding: 8px; gap: 4px; }
  .account-menu a, .account-menu button { white-space: nowrap; width: auto; flex-shrink: 0; padding: 10px 12px; }
  .account-menu .count-pill { margin-left: 4px; }
  .account-menu form { flex-shrink: 0; }
  /* Siparişler: fiyat/buton alt satıra, ürün özeti küçük resimlerin altına. */
  .order-row { flex-wrap: wrap; gap: 12px 14px; }
  .order-row > div:nth-child(2) { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .order-row .order-side { flex: 1 1 100%; display: flex !important; align-items: center; justify-content: space-between; padding-left: 38px; }
  .order-items { flex-wrap: wrap; }
  .order-items p { flex-basis: 100%; margin: 4px 0 0; }
  /* Ürünlerim: anahtar zaten durumu gösteriyor. */
  .catalog-row .side .status { display: none; }
  .catalog-row .info { min-width: 0; flex: 1; }
}
.status { white-space: nowrap; }

/* ── Ödeme adımları ve demo güvenli ödeme ─────────────────────────────── */
.checkout-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; }
.checkout-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font: 600 12px 'Archivo', sans-serif; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.checkout-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); font-size: 11px; flex-shrink: 0; }
.checkout-steps li span svg { width: 14px; height: 14px; }
.checkout-steps li.on { color: var(--text); border-color: var(--blue); }
.checkout-steps li.on span { background: var(--blue); border-color: var(--blue); color: #fff; }
.checkout-steps li.done { color: var(--text); border-color: #34d39977; }
.checkout-steps li.done span { background: #34d39922; border-color: #34d39977; color: #34d399; }

.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); margin-bottom: 18px; }
.pay-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; font: 600 13px 'Archivo', sans-serif; color: var(--muted); border: 1px solid transparent; }
.pay-tabs button svg { width: 18px; height: 18px; }
.pay-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 4px 14px -8px #0008; border-color: var(--border); }

.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: #f5b94214; border: 1px solid #f5b94240; color: var(--text); margin-bottom: 22px; }
.demo-note svg { width: 18px; height: 18px; flex-shrink: 0; color: #f5b942; }
body.light .demo-note svg { color: #b7791f; }

.pay-card { position: relative; max-width: 360px; aspect-ratio: 1.586; margin: 0 auto 26px; perspective: 1200px; }
.pay-card-face { position: absolute; inset: 0; border-radius: 18px; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; backface-visibility: hidden; transition: transform .6s cubic-bezier(.3, .7, .3, 1); background: linear-gradient(135deg, #1f4fbf, #0b1c4d 70%); box-shadow: 0 22px 40px -22px #0b1c4dcc; overflow: hidden; }
.pay-card-face:before { content: ''; position: absolute; width: 240px; height: 240px; right: -80px; top: -90px; border-radius: 50%; background: #ffffff12; }
.pay-card[data-brand="visa"] .pay-card-face { background: linear-gradient(135deg, #1a3fa8, #0c1a4f 70%); }
.pay-card[data-brand="mastercard"] .pay-card-face { background: linear-gradient(135deg, #3a3f4f, #121420 70%); }
.pay-card[data-brand="troy"] .pay-card-face { background: linear-gradient(135deg, #0f8b8d, #073b4c 70%); }
.pay-card[data-brand="amex"] .pay-card-face { background: linear-gradient(135deg, #2f8fd6, #0e4f86 70%); }
.pay-card-face.back { transform: rotateY(180deg); padding: 22px 0; justify-content: flex-start; gap: 22px; }
.pay-card.flipped .front { transform: rotateY(-180deg); }
.pay-card.flipped .back { transform: rotateY(0); }
.pay-card-top, .pay-card-bottom { display: flex; justify-content: space-between; align-items: center; position: relative; }
.pay-card-bottom span:last-child { text-align: right; }
.pay-card small { display: block; font-size: 8.5px; letter-spacing: 1.2px; opacity: .65; margin-bottom: 4px; }
.pay-card b { font: 600 13px 'Archivo', sans-serif; letter-spacing: .6px; }
.pay-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f4d98b, #b8913c); }
.pay-card .pay-brand { font: italic 800 18px 'Archivo', sans-serif; letter-spacing: 1px; }
.pay-number { font: 500 clamp(16px, 4.6vw, 21px) ui-monospace, Consolas, monospace; letter-spacing: 1.5px; position: relative; white-space: nowrap; }
.pay-stripe { height: 42px; background: #0a0f1d; }
.pay-cvv { margin: 0 22px; background: #fff; color: #111; border-radius: 6px; padding: 8px 12px; text-align: right; }

.input-wrap { position: relative; display: block; }
.input-wrap .field { padding-right: 70px; }
.input-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); margin-top: 4px; font: italic 800 11px 'Archivo', sans-serif; letter-spacing: .6px; padding: 4px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--border); color: var(--text); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input-badge[data-bank-badge] { font-style: normal; font-weight: 600; letter-spacing: 0; }
.field.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
input.field.invalid { border-color: #f87171; }
input.field.valid { border-color: #34d39988; }
.field-error { display: block; font-size: 11.5px; color: #f87171; margin-top: 6px; }
.field-error:empty { display: none; }
body.light .field-error { color: #dc2626; }

.choice.inst { margin-bottom: 8px; }
.inst-tag { font-size: 10px; font-weight: 700; color: #34d399; background: #34d39918; border-radius: 6px; padding: 4px 7px; white-space: nowrap; }
body.light .inst-tag { color: #0d9488; }

.pay-alert { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #fca5a5; background: #f8717114; border: 1px solid #f8717140; }
body.light .pay-alert { color: #b91c1c; }
.pay-actions { margin-top: 24px; }
.btn.loading { opacity: .8; cursor: progress; }
.btn.loading svg { animation: pay-pulse 1s infinite; }
@keyframes pay-pulse { 50% { opacity: .3; } }

.test-cards { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 12px; }
.test-cards summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.test-cards p { margin: 10px 0; }
.test-cards button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; margin-top: 6px; border-radius: 10px; border: 1px dashed var(--border); text-align: left; }
.test-cards button b { font-family: ui-monospace, Consolas, monospace; font-weight: 500; }
.test-cards button span { color: var(--muted); }

.pay-address { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.pay-address small { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); }
.pay-address span { color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust svg { width: 13px; height: 13px; }

.tds { position: fixed; inset: 0; z-index: 200; background: #050914cc; backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.tds[hidden] { display: none; }
html.tds-open { overflow: hidden; }
.tds-box { width: min(400px, 100%); background: #fff; color: #1d2433; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -20px #000; }
.tds-box > div:not(.tds-head) { padding: 20px 22px 22px; }
.tds-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #f3f5f9; border-bottom: 1px solid #e3e7ef; font-size: 14px; }
.tds-head span { font: italic 800 14px 'Archivo', sans-serif; color: #1a3fa8; }
.tds-info { margin: 0 0 14px; display: grid; gap: 7px; font-size: 13px; }
.tds-info div { display: flex; justify-content: space-between; gap: 12px; }
.tds-info dt { color: #6b7385; }
.tds-info dd { margin: 0; font-weight: 600; text-align: right; }
.tds-box .small { color: #4b5466; line-height: 1.5; }
.tds-box .field { width: 100%; background: #fff; color: #1d2433; border-color: #d5dbe6; }
.tds-code { text-align: center; font: 600 22px ui-monospace, Consolas, monospace; letter-spacing: 10px; margin-top: 10px; }
.tds-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7385; margin: 12px 0 16px; }
.tds-meta .text-btn { color: #1a5fd0; }
.tds-box .btn.ghost { background: #fff; color: #1d2433; border-color: #d5dbe6; }
.tds-hint { text-align: center; font-size: 11px; color: #8a93a6; margin: 14px 0 0; }
.spinner { width: 44px; height: 44px; margin: 12px auto 16px; border-radius: 50%; border: 3px solid #dde3ee; border-top-color: #2b74d8; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge.pay-ok { display: inline-flex; align-items: center; gap: 6px; color: #34d399; background: #34d39918; margin-bottom: 12px; font-size: 11px; }
.badge.pay-ok svg { width: 13px; height: 13px; }
body.light .badge.pay-ok { color: #0d9488; }

@media (max-width: 800px) {
  .checkout-steps { gap: 4px; margin-bottom: 18px; }
  .checkout-steps li { flex-direction: column; gap: 6px; font-size: 10.5px; text-align: center; }
  .pay-card { max-width: 320px; }
  .pay-card-face { padding: 18px; }
  .choice.inst .inst-tag { display: none; }
  .pay-form .form-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* Giriş/kayıt formundaki hata kutusu (Faz 2) */
.auth-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: #fecaca; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .4); }
.auth-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: #f87171; }
body.light .auth-alert { color: #b91c1c; background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); }
body.light .auth-alert svg { stroke: #dc2626; }
