/* Sipariş Market — sadakat puanı, tavsiye ödülü, haritadan konum seçme */

/* Hesabım: sadakat kartı */
.sm-app .sm-loy-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border-radius: 22px; padding: 16px; margin-bottom: 12px; color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316 60%, #ef4444); box-shadow: 0 12px 28px rgba(249,115,22,.32); }
.sm-loy-ico { font-size: 34px; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
.sm-loy-card > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sm-loy-card small { font-size: 12px; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.sm-loy-card b { font-size: 28px; font-weight: 900; line-height: 1.1; }
.sm-loy-card b em { font-style: normal; font-size: 14px; font-weight: 700; opacity: .9; }
.sm-loy-card span { font-size: 12px; opacity: .9; }
.sm-loy-card .sm-i { color: #fff; }

/* Hesabım: adisyon yazılımını sat, ödül al */
.sm-ref { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; margin-bottom: 14px; color: #fff; background: linear-gradient(150deg, #16161a, #2d2d35); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.sm-ref::after { content: "💰"; position: absolute; right: -6px; bottom: -14px; font-size: 92px; opacity: .14; }
.sm-ref-badge { display: inline-block; background: #22c55e; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 20px; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: sm-pulse 2s ease-in-out infinite; }
@keyframes sm-pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,.05); } }
.sm-app .sm-ref h4 { color: #fff; font-size: 19px; font-weight: 900; line-height: 1.2; margin: 10px 0 6px; position: relative; z-index: 1; }
.sm-ref h4 em { font-style: normal; color: #4ade80; }
.sm-ref p { font-size: 13px; opacity: .8; margin: 0 0 14px !important; position: relative; z-index: 1; }
.sm-ref-b { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.sm-app .sm-ref-b .sm-btn { flex: 1 1 140px; min-height: 48px; font-size: 14px; justify-content: center; }
.sm-app .sm-ref-wa { background: #16a34a; }
.sm-app .sm-ref-sw { background: #fff; color: var(--sm-ink); }
.sm-ref-b .sm-i { width: 18px; height: 18px; }
.sm-ref-note { display: block; margin-top: 10px; font-size: 11px; opacity: .6; position: relative; z-index: 1; }

/* Sadakat ekranı */
.sm-loy-hero { text-align: center; border-radius: 22px; padding: 22px 16px; background: linear-gradient(135deg, #fff7ed, #ffedd5); margin-bottom: 8px; }
.sm-loy-hero > span { font-size: 44px; display: block; }
.sm-loy-hero b { display: block; font-size: 44px; font-weight: 900; color: #c2410c; line-height: 1; margin-top: 6px; }
.sm-loy-hero small { color: #9a3412; font-weight: 700; }
.sm-loy-hero p { margin-top: 10px !important; font-size: 13px; color: #7c2d12; }
.sm-rwlist { display: flex; flex-direction: column; gap: 8px; }
.sm-rw { display: flex; align-items: center; gap: 12px; background: var(--sm-bg); border-radius: 18px; padding: 12px 14px; border: 2px solid transparent; }
.sm-rw-ok { border-color: #fdba74; background: #fff7ed; }
.sm-rw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sm-rw-t small { color: var(--sm-muted); font-size: 12px; }
.sm-rw-t i { display: block; height: 6px; border-radius: 6px; background: #e5e7eb; overflow: hidden; margin-top: 4px; }
.sm-rw-t em { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #f97316); border-radius: 6px; }
.sm-app .sm-rw .sm-chip-btn { white-space: nowrap; }
.sm-app .sm-rw .sm-chip-btn:disabled { opacity: .55; cursor: default; }
.sm-phist { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; }
.sm-ph-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--sm-bg); }
.sm-ph-r > div { display: flex; flex-direction: column; min-width: 0; }
.sm-ph-r b { font-size: 13px; font-weight: 600; }
.sm-ph-r small { color: var(--sm-muted); font-size: 11px; }
.sm-ph-plus { color: #15803d; font-weight: 800; }
.sm-ph-minus { color: #b91c1c; font-weight: 800; }

/* "Haritadan seç" düğmesi */
.sm-app .sm-map-btn { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px; color: var(--sm-primary); font-weight: 700; font-size: 14px; background: var(--sm-soft); border-radius: 12px; padding: 9px 12px; }
.sm-map-btn .sm-i { width: 18px; height: 18px; }

/* Tam ekran harita */
.sm-map-wrap { position: fixed; inset: 0; z-index: 100001; background: #fff; display: flex; flex-direction: column; }
.sm-map-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; border-bottom: 1px solid var(--sm-line); background: #fff; z-index: 2; }
.sm-map-top div { display: flex; flex-direction: column; }
.sm-map-top small { color: var(--sm-muted); font-size: 12px; }
.sm-map { flex: 1; position: relative; min-height: 0; background: #e5e7eb; }
.sm-map .sm-loading { height: 100%; align-items: center; }
.sm-app .sm-map-me { position: absolute; right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 1000; width: 50px; height: 50px; color: var(--sm-primary); }
.sm-map-bot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sm-line); background: #fff; z-index: 2; }
.sm-map-addr { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 14px; margin: 0 0 12px !important; min-height: 40px; }
.sm-map-addr .sm-i { color: var(--sm-primary); flex: 0 0 auto; }
.sm-app .sm-map-ok { min-height: 54px; }
.sm-pin { background: none; border: 0; }
.sm-pin span { display: block; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--sm-primary, #ff6b1a); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.3); border: 3px solid #fff; position: relative; }
.sm-pin span::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.leaflet-container { font: inherit; }
@media (min-width: 640px) {
    .sm-map-wrap { inset: 20px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-width: 900px; margin: 0 auto; }
}
/* İşletme paneli: vurgulu "10.000 ₺ Kazan" sekmesi */
.sm-app .sm-tab.sm-tab-ref { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; font-weight: 800; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: sm-ref-glow 2s ease-in-out infinite; }
.sm-app .sm-tab.sm-tab-ref.sm-on { background: linear-gradient(135deg, #15803d, #16a34a); box-shadow: 0 6px 16px rgba(22,163,74,.4); animation: none; }
@keyframes sm-ref-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .sm-app .sm-tab.sm-tab-ref, .sm-ref-badge { animation: none; } }
.sm-ref-lg { padding: 22px 18px; }
.sm-app .sm-ref-lg h4 { font-size: 22px; }
.sm-ref-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.sm-ref-steps li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.sm-ref-steps b { width: 28px; height: 28px; border-radius: 9px; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 auto; }
.sm-app .sm-ref-strip { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 8px; padding: 11px 14px; border-radius: 16px; text-align: left; color: #fff; background: linear-gradient(135deg, #15803d, #22c55e); box-shadow: 0 8px 20px rgba(22,163,74,.3); animation: sm-ref-glow 2s ease-in-out infinite; }
.sm-ref-strip > span { font-size: 22px; }
.sm-ref-strip b { flex: 1; font-size: 15px; font-weight: 800; }
.sm-ref-strip em { font-style: normal; color: #fef08a; }
.sm-ref-strip .sm-i { color: #fff; }
@media (min-width: 640px) { .sm-app .sm-ref-strip { width: calc(100% - 48px); margin: 0 24px 8px; } }
@media (prefers-reduced-motion: reduce) { .sm-app .sm-ref-strip { animation: none; } }
