/* =====================================================
   UHEX Üye Uygulaması — mobil öncelikli PWA arayüzü
   Renkler /theme.css değişkenlerinden gelir
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --mp: var(--mobile-primary, #1E3A5F);
  --ms: var(--mobile-secondary, #3B82F6);
  --bg: #F1F5F9;
  --card: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 16px;
  --nav-h: calc(64px + env(safe-area-inset-bottom));
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  overscroll-behavior-y: none;
}
img { max-width: 100%; }
a { color: var(--ms); text-decoration: none; }

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; background: linear-gradient(160deg, var(--mp), color-mix(in srgb, var(--mp) 55%, #000));
  display: flex; align-items: center; justify-content: center; z-index: 100;
  transition: opacity .4s ease;
}
.splash img { max-width: 62%; max-height: 70px; object-fit: contain; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.splash.hide { opacity: 0; pointer-events: none; }

/* ---- Giriş (modern) ---- */
.auth-page {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px 20px;
  background:
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--ms) 48%, transparent) 0%, transparent 34%),
    radial-gradient(circle at 8% 92%, color-mix(in srgb, var(--ms) 24%, transparent) 0%, transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--mp) 88%, #0F172A), color-mix(in srgb, var(--mp) 42%, #020617));
  position: relative; overflow: hidden;
}
.auth-page-scroll { justify-content: flex-start; overflow: auto; }
.auth-page::before {
  content: ''; position: fixed; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09); top: -180px; right: -160px;
}
.auth-page::after {
  content: ''; position: fixed; width: 280px; height: 280px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07); bottom: -110px; left: -100px;
}
.auth-shell { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-shell-wide { max-width: 720px; }
.auth-card {
  width: 100%; background: rgba(255,255,255,.985); border: 1px solid rgba(255,255,255,.7); border-radius: 28px;
  padding: 32px 30px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 32px 80px rgba(2,6,23,.38), 0 2px 8px rgba(2,6,23,.12); animation: rise .45s ease; position: relative;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-logo { min-height: 46px; display: flex; justify-content: center; align-items: center; margin-bottom: 22px; }
.auth-logo img { max-height: 44px; max-width: 210px; object-fit: contain; }
.auth-eyebrow { color: var(--ms); font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; margin-bottom: 10px; }
.auth-brand h1, .auth-success h1 { font-size: clamp(23px, 6vw, 28px); line-height: 1.2; letter-spacing: -.025em; color: #0F172A; margin: 0 0 9px; }
.auth-brand p, .auth-success p { max-width: 390px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-card .inp { border-radius: 13px; background: #F8FAFC; border-color: #E2E8F0; transition: background .18s, border-color .18s, box-shadow .18s; }
.auth-card .inp:hover { border-color: #CBD5E1; }
.auth-card .inp:focus { background: #fff; border-color: var(--ms); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ms) 14%, transparent); }
.auth-card .fg label { color: #334155; font-size: 12.5px; }
.auth-card .fg label em { color: #94A3B8; font-weight: 500; font-style: normal; }
.auth-card .form-hint { margin-top: 6px; color: #94A3B8; font-size: 11px; line-height: 1.4; }
.auth-primary { min-height: 52px; margin-top: 6px; background: linear-gradient(135deg, var(--mp), color-mix(in srgb, var(--mp) 62%, var(--ms))); box-shadow: 0 12px 25px color-mix(in srgb, var(--mp) 26%, transparent); }
.auth-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-secondary { min-height: 50px; background: #fff; color: var(--mp); border: 1.5px solid color-mix(in srgb, var(--mp) 22%, #E2E8F0); box-shadow: none; }
.auth-secondary:hover {
  background: var(--mp);
  border-color: var(--mp);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--mp) 20%, transparent);
  transform: translateY(-1px);
}
.auth-inline { min-height: 26px; margin: -2px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #94A3B8; font-size: 11.5px; }
.auth-link, .auth-back { border: 0; background: transparent; color: var(--ms); font: inherit; font-weight: 700; cursor: pointer; }
.auth-back { width: 100%; margin-top: 16px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); }
.auth-back:hover { color: var(--mp); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #94A3B8; font-size: 11.5px; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.auth-trust { margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #94A3B8; font-size: 11.5px; }
.auth-steps { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 0 25px; position: relative; }
.auth-steps::before { content: ''; position: absolute; height: 2px; top: 15px; left: 11%; right: 11%; background: #E2E8F0; }
.auth-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #94A3B8; }
.auth-step span { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #E2E8F0; background: #fff; font-size: 12px; font-weight: 800; }
.auth-step small { font-size: 9.5px; font-weight: 700; }
.auth-step.active, .auth-step.done { color: var(--mp); }
.auth-step.active span, .auth-step.done span { border-color: var(--ms); background: var(--ms); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ms) 12%, transparent); }
.otp-input { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .22em; }
.otp-status { margin: -4px 0 18px; padding: 15px; display: flex; align-items: center; gap: 13px; border: 1px solid color-mix(in srgb, var(--ms) 18%, #E2E8F0); border-radius: 17px; background: linear-gradient(135deg, color-mix(in srgb, var(--ms) 7%, #fff), #F8FAFC); }
.otp-timer-ring { min-width: 88px; height: 48px; padding: 0 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; color: var(--mp); background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.08); }
.otp-timer-ring svg { color: var(--ms); }
.otp-timer-ring strong { min-width: 43px; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.otp-status-copy { min-width: 0; }
.otp-status-copy strong, .otp-status-copy span { display: block; }
.otp-status-copy strong { color: #1E293B; font-size: 12.5px; }
.otp-status-copy span { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.otp-resend { width: 100%; min-height: 42px; margin: -7px 0 13px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ms) 10%, #fff); color: var(--ms); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: opacity .18s, background .18s, transform .18s; }
.otp-resend:not(:disabled):hover { background: color-mix(in srgb, var(--ms) 17%, #fff); transform: translateY(-1px); }
.otp-resend:disabled { color: #94A3B8; background: #F1F5F9; cursor: not-allowed; opacity: .72; }
.otp-input:disabled { color: #94A3B8; cursor: not-allowed; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.auth-section-title { margin: 22px 0 14px; padding-bottom: 9px; border-bottom: 1px solid #EEF2F7; color: #334155; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.consent-box { border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px; background: #F8FAFC; margin: 4px 0 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: #475569; font-size: 12.5px; line-height: 1.45; cursor: pointer; }
.check + .check { margin-top: 11px; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--ms); }
.auth-actions { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.auth-actions .auth-back { margin: 6px 0 0; }
.review-card { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 16px; background: color-mix(in srgb, var(--ms) 7%, #F8FAFC); border: 1px solid color-mix(in srgb, var(--ms) 14%, #E2E8F0); }
.review-avatar { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--mp); color: #fff; font-size: 18px; font-weight: 800; }
.review-card strong, .review-card span { display: block; }
.review-card span { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.review-list { margin: 14px 0 20px; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; }
.review-list div { padding: 12px 14px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #EEF2F7; font-size: 12.5px; }
.review-list div:last-child { border: 0; }
.review-list span { color: var(--muted); }
.review-list strong { text-align: right; text-transform: capitalize; }
.auth-success { text-align: center; }
.success-icon { width: 66px; height: 66px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #DCFCE7; color: #15803D; }
.auth-success .auth-primary { margin-top: 24px; }
.auth-field-icon { position: relative; }
.auth-field-icon > svg { position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); color: #8390A3; pointer-events: none; }
.auth-field-icon .inp { padding-left: 45px; }
.auth-password-field .inp { padding-right: 48px; }
.auth-password-field button { position: absolute; right: 6px; top: 50%; width: 39px; height: 39px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; color: #718096; background: transparent; cursor: pointer; }
.auth-password-field button:active { background: #EEF2F7; }
.auth-login .auth-inline span { display: flex; align-items: center; gap: 4px; }
.auth-primary.loading svg { animation: loginPulse .8s ease-in-out infinite alternate; }
@keyframes loginPulse { to { transform: translateX(4px); opacity: .55; } }

/* ---- Hikayeler (story) ---- */
.story-row {
  display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 8px;
  margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.story-row::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 72px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.story-ring {
  width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, var(--ms), var(--mp), var(--ms));
}
.story-item.seen .story-ring { background: #CBD5E1; }
.story-thumb {
  width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #fff;
  object-fit: cover; background: linear-gradient(135deg, var(--mp), color-mix(in srgb, var(--mp) 55%, #000));
  display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden;
}
.story-label { font-size: 11px; font-weight: 600; color: var(--text); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Hikaye görüntüleyici ---- */
.story-viewer {
  position: fixed; inset: 0; z-index: 90; background: #000;
  display: flex; flex-direction: column; animation: fade .2s ease;
}
.story-progress { display: flex; gap: 5px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
.story-progress div { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-progress div i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }
.story-head { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; color: #fff; }
.story-head .t { flex: 1; font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.story-head .x { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.story-body {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.story-body .fallback {
  padding: 30px; text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--mp), color-mix(in srgb, var(--mp) 45%, #000));
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.story-body .fallback .big { font-size: 24px; font-weight: 800; line-height: 1.4; }
.story-body .tap { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2; }
.story-body .tap.left { left: 0; }
.story-body .tap.right { right: 0; width: 66%; }
.story-foot {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
}
.story-foot .info { font-size: 13.5px; opacity: .9; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.story-foot .btn { background: rgba(255,255,255,.95); color: var(--mp); }

/* ---- Anlaşmalı işyerleri ---- */
.partner-section { margin: 0 -16px 14px; padding: 15px 0 16px; background: #fff; border-top: 1px solid #E8EDF3; border-bottom: 1px solid #E8EDF3; }
.partner-section-head { padding: 0 16px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-section-head > div { min-width: 0; }
.partner-section-head span, .partner-section-head small { display: block; }
.partner-section-head span { color: #0F172A; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.partner-section-head small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.partner-section-head a { padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ms) 10%, #fff); color: var(--ms); font-size: 11px; font-weight: 800; }
.partner-row { display: flex; gap: 12px; padding: 0 16px 2px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.partner-row::-webkit-scrollbar { display: none; }
.partner-item { width: 84px; flex: 0 0 84px; padding: 0; border: 0; background: none; color: var(--text); font-family: inherit; text-align: center; cursor: pointer; scroll-snap-align: start; }
.partner-logo-wrap { width: 70px; height: 70px; margin: 0 auto 7px; padding: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid #E4EAF1; border-radius: 22px; background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.07); transition: transform .16s, border-color .16s; }
.partner-item:active .partner-logo-wrap { transform: scale(.95); border-color: color-mix(in srgb, var(--ms) 40%, #E4EAF1); }
.partner-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.merchant-logo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--mp), color-mix(in srgb, var(--mp) 55%, var(--ms))); color: #fff; font-weight: 900; letter-spacing: .02em; }
.merchant-logo-fallback.partner-logo { font-size: 18px; }
.partner-name, .partner-meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.partner-name { color: #253147; font-size: 11px; font-weight: 750; }
.partner-meta { margin-top: 1px; color: #8A96A7; font-size: 9px; }

.merchant-directory-intro { margin-bottom: 14px; padding: 17px; display: flex; align-items: center; gap: 13px; border-radius: 19px; color: #fff; background: linear-gradient(140deg, var(--mp), color-mix(in srgb, var(--mp) 58%, var(--ms))); box-shadow: 0 12px 28px color-mix(in srgb, var(--mp) 22%, transparent); }
.merchant-directory-intro > span { width: 46px; height: 46px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: rgba(255,255,255,.14); }
.merchant-directory-intro strong { display: block; font-size: 14px; }
.merchant-directory-intro p { margin-top: 3px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.45; }
.merchant-search-box { position: relative; margin-bottom: 7px; }
.merchant-search-box > svg { position: absolute; z-index: 1; left: 14px; top: 50%; transform: translateY(-50%); color: #8592A5; pointer-events: none; }
.merchant-search-box input { width: 100%; height: 50px; padding: 0 45px 0 44px; border: 1.5px solid #E1E7EF; border-radius: 16px; outline: 0; background: #fff; color: var(--text); font: inherit; font-size: 14px; box-shadow: 0 3px 12px rgba(15,23,42,.035); transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; }
.merchant-search-box input:focus { border-color: var(--ms); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ms) 12%, transparent); }
.merchant-search-box input::-webkit-search-cancel-button { display: none; }
.merchant-search-box button { position: absolute; right: 8px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%) scale(.85); border: 0; border-radius: 11px; background: #EEF2F6; color: #657287; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.merchant-search-box button.show { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.merchant-result-count { margin: 0 3px 10px; color: #8491A3; font-size: 10.5px; font-weight: 650; }
.merchant-directory-grid { display: grid; gap: 10px; }
.merchant-directory-card[hidden] { display: none; }
.merchant-directory-card { width: 100%; padding: 13px; display: flex; align-items: center; gap: 12px; border: 1px solid #E5EAF1; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 3px 12px rgba(15,23,42,.045); font-family: inherit; text-align: left; cursor: pointer; }
.merchant-directory-logo { width: 58px; height: 58px; padding: 7px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 17px; border: 1px solid #E9EDF3; background: #FAFBFC; overflow: hidden; }
.merchant-directory-logo img, .merchant-directory-logo .merchant-logo-fallback { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.merchant-directory-copy { flex: 1; min-width: 0; }
.merchant-directory-copy strong, .merchant-directory-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.merchant-directory-copy strong { color: #172033; font-size: 14px; }
.merchant-directory-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.merchant-offer-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; color: #166534; background: #DCFCE7; font-size: 10px; font-weight: 800; }
.merchant-card-arrow { color: #B2BDCB; }
.merchant-search-empty { display: none; padding: 28px 18px; border: 1px dashed #D8E0E9; border-radius: 20px; text-align: center; background: #F8FAFC; }
.merchant-search-empty.show { display: block; }
.merchant-search-empty > span { width: 50px; height: 50px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); }
.merchant-search-empty strong { display: block; color: #273349; font-size: 13.5px; }
.merchant-search-empty p { margin-top: 4px; color: var(--muted); font-size: 11px; }

.merchant-profile-hero { position: relative; overflow: hidden; margin-bottom: 14px; padding: 25px 20px 22px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(150deg, var(--mp), color-mix(in srgb, var(--mp) 55%, var(--ms))); box-shadow: 0 16px 36px color-mix(in srgb, var(--mp) 24%, transparent); }
.merchant-profile-hero::before, .merchant-profile-hero::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.merchant-profile-hero::before { width: 180px; height: 180px; right: -80px; top: -95px; }
.merchant-profile-hero::after { width: 100px; height: 100px; left: -45px; bottom: -52px; }
.merchant-profile-hero > * { position: relative; z-index: 1; }
.merchant-profile-logo { width: 88px; height: 88px; margin: 0 auto 14px; padding: 11px; display: flex; align-items: center; justify-content: center; border-radius: 25px; background: #fff; box-shadow: 0 10px 30px rgba(5,15,28,.2); overflow: hidden; }
.merchant-profile-logo img, .merchant-profile-logo .merchant-logo-fallback { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.merchant-profile-logo .merchant-logo-fallback { font-size: 24px; }
.merchant-profile-kicker { color: rgba(255,255,255,.7); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.merchant-profile-hero h2 { margin-top: 5px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.merchant-profile-hero p { margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255,255,255,.78); font-size: 11.5px; }
.merchant-contact-card { margin-bottom: 16px; padding: 7px 15px; border: 1px solid #E5EAF1; border-radius: 20px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.045); }
.merchant-contact-title { padding: 8px 2px 7px; color: #8491A3; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.merchant-contact-row { min-height: 59px; padding: 9px 1px; display: flex; align-items: center; gap: 11px; color: var(--text); border-top: 1px solid #EEF2F6; }
.merchant-contact-row > span { width: 37px; height: 37px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 12px; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); }
.merchant-contact-row div { flex: 1; min-width: 0; }
.merchant-contact-row small, .merchant-contact-row strong { display: block; }
.merchant-contact-row small { color: var(--muted); font-size: 9.5px; }
.merchant-contact-row strong { margin-top: 1px; color: #263248; font-size: 12px; line-height: 1.35; word-break: break-word; }
.merchant-contact-row i { color: #C0C9D5; font-style: normal; }
.merchant-campaign-heading { margin: 3px 1px 11px; }
.merchant-campaign-heading span, .merchant-campaign-heading small { display: block; }
.merchant-campaign-heading span { color: #172033; font-size: 15px; font-weight: 800; }
.merchant-campaign-heading small { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.merchant-campaign-list { display: grid; gap: 10px; }
.merchant-campaign-card { width: 100%; padding: 11px; display: flex; align-items: center; gap: 11px; border: 1px solid #E5EAF1; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 3px 12px rgba(15,23,42,.04); font-family: inherit; text-align: left; cursor: pointer; }
.merchant-campaign-visual { width: 54px; height: 54px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 15px; overflow: hidden; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); }
.merchant-campaign-visual img { width: 100%; height: 100%; object-fit: cover; }
.merchant-campaign-copy { min-width: 0; flex: 1; }
.merchant-campaign-copy strong, .merchant-campaign-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.merchant-campaign-copy strong { color: #182235; font-size: 13px; white-space: nowrap; }
.merchant-campaign-copy small { margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.merchant-campaign-value { flex: 0 0 auto; max-width: 84px; padding: 6px 8px; border-radius: 10px; color: #166534; background: #DCFCE7; font-size: 10.5px; font-weight: 850; text-align: center; }
.merchant-empty-campaign { padding: 27px 20px; border: 1px dashed #D8E0E9; border-radius: 20px; text-align: center; background: #F8FAFC; }
.merchant-empty-campaign > span { width: 52px; height: 52px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center; border-radius: 17px; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); }
.merchant-empty-campaign strong { display: block; color: #273349; font-size: 13.5px; }
.merchant-empty-campaign p { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* ---- Uygulama düzeni ---- */
.screen { padding: 0 16px calc(var(--nav-h) + 18px); max-width: 560px; margin: 0 auto; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.app-header {
  position: sticky; top: 0; z-index: 30; margin: 0 -16px 14px;
  background: var(--mp); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; gap: 12px;
}
.app-header .back { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 11px; font-size: 19px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.app-header h1 { font-size: 17px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .bell { position: relative; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 11px; cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.app-header .bell .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- Kartlar ---- */
.c { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.c-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.c-title a { font-size: 12.5px; font-weight: 600; }

/* ---- Pano ---- */
.hero {
  margin: 0 -16px 14px; padding: calc(14px + env(safe-area-inset-top)) 16px 52px;
  background: linear-gradient(160deg, var(--mp), color-mix(in srgb, var(--mp) 70%, #000));
  color: #fff;
}
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-top img.logo { max-height: 26px; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); }
.hero-top .spacer { flex: 1; }
.hero-greet { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.hero-greet .hi { font-size: 13px; opacity: .8; }
.hero-greet .name { font-size: 18px; font-weight: 700; }
.points-band {
  margin: -38px 0 14px; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(15,23,42,.12); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.points-band .pb { flex: 1; text-align: center; }
.points-band .pb + .pb { border-left: 1px solid var(--border); }
.points-band .v { font-size: 21px; font-weight: 800; color: var(--mp); }
.points-band .l { font-size: 11.5px; color: var(--muted); }
.info-band { display: flex; gap: 10px; margin-bottom: 14px; }
.info-band .c { flex: 1; margin: 0; padding: 12px 14px; }
.info-band .big { font-size: 19px; font-weight: 800; }
.info-band .sm { font-size: 11.5px; color: var(--muted); }
.prayer-row { display: flex; justify-content: space-between; gap: 4px; }
.prayer-row div { text-align: center; flex: 1; }
.prayer-row .pn { font-size: 10.5px; color: var(--muted); }
.prayer-row .pt { font-size: 13px; font-weight: 700; }
.prayer-row .active .pt, .prayer-row .active .pn { color: var(--ms); }

/* ---- Liste öğeleri ---- */
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F1F5F9; cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--mp) 10%, transparent); color: var(--mp); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.li .ct { flex: 1; min-width: 0; }
.li .t { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .arrow { color: var(--border); font-size: 18px; }
.li.unread .t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ms); margin-right: 6px; vertical-align: 1px; }

/* ---- Rozet/badge ---- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.pill-green { background: #DCFCE7; color: #15803D; }
.pill-red { background: #FEE2E2; color: #B91C1C; }
.pill-gray { background: #E2E8F0; color: #475569; }
.pill-blue { background: color-mix(in srgb, var(--ms) 15%, #fff); color: var(--ms); }

/* ---- Form ---- */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.inp {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 13px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text); min-height: 48px;
}
.inp:focus { outline: none; border-color: var(--ms); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms) 18%, transparent); }
textarea.inp { min-height: 90px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px; border-radius: 14px; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 700; font-family: inherit;
  background: var(--mp); color: #fff; transition: filter .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; }
.btn-line { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-sm { padding: 10px 14px; width: auto; font-size: 13.5px; border-radius: 11px; }
.msg { padding: 12px 15px; border-radius: 12px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.msg-err { background: #FEE2E2; color: #B91C1C; }
.msg-ok { background: #DCFCE7; color: #15803D; }

/* ---- Dijital kart ---- */
.member-card {
  border-radius: 20px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--mp), color-mix(in srgb, var(--mp) 55%, #000));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--mp) 45%, transparent);
  margin-bottom: 16px;
}
.member-card .mc-org { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.member-card .mc-org img { max-height: 24px; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1); }
.member-card .mc-holder { display: flex; align-items: center; gap: 13px; }
.member-card .avatar { width: 54px; height: 54px; border: 2px solid rgba(255,255,255,.5); }
.member-card .mc-name { font-size: 18px; font-weight: 800; }
.member-card .mc-no { font-size: 12.5px; opacity: .8; letter-spacing: .1em; }
.member-card .mc-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; opacity: .9; }
.qr-box { background: #fff; border-radius: 20px; padding: 22px; text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.qr-box svg { width: min(64vw, 250px); height: auto; }
.qr-timer { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.qr-bar { height: 5px; background: var(--border); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.qr-bar div { height: 100%; background: var(--ms); border-radius: 99px; transition: width 1s linear; }

/* ---- QR okuma ---- */
.scan-wrap { position: relative; background: #0F172A; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; }
.scan-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: 0 0 0 999px rgba(15,23,42,.4); }
.scan-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }

/* ---- Referanslarım ---- */
.referral-screen { padding-top: 2px; }
.ref-hero {
  position: relative; overflow: hidden; padding: 24px 20px 20px; margin-bottom: 14px;
  border-radius: 24px; color: #fff;
  background: linear-gradient(145deg, var(--mp), color-mix(in srgb, var(--mp) 62%, var(--ms)));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--mp) 24%, transparent);
}
.ref-hero::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -82px; top: -90px; background: rgba(255,255,255,.08); }
.ref-hero::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: 30px; bottom: -72px; border: 1px solid rgba(255,255,255,.12); }
.ref-hero > * { position: relative; z-index: 1; }
.ref-hero-orb { width: 52px; height: 52px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; border-radius: 17px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.ref-kicker { display: block; margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: 10.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ref-hero h2 { font-size: clamp(23px, 7vw, 30px); line-height: 1.16; letter-spacing: -.03em; margin-bottom: 10px; }
.ref-hero > p { max-width: 430px; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.55; }
.ref-code-box { margin: 22px 0 12px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.1); }
.ref-code-box span { color: rgba(255,255,255,.72); font-size: 11.5px; }
.ref-code-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .12em; }
.ref-actions { display: grid; grid-template-columns: 1fr 52px; gap: 9px; }
.ref-share-primary, .ref-copy-button { min-height: 52px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s; }
.ref-share-primary { background: #fff; color: var(--mp); font-size: 13.5px; }
.ref-copy-button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.17); }
.ref-copy-button.copied { background: #22C55E; }
.ref-share-primary:active, .ref-copy-button:active { transform: scale(.97); }
.ref-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.ref-stat { min-width: 0; padding: 14px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E8EDF3; border-radius: 17px; box-shadow: 0 3px 12px rgba(15,23,42,.045); }
.ref-stat-icon { width: 38px; height: 38px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.ref-stat-icon.blue { color: #2563EB; background: #DBEAFE; }
.ref-stat-icon.green { color: #15803D; background: #DCFCE7; }
.ref-stat-icon.amber { color: #B45309; background: #FEF3C7; }
.ref-stat-icon.violet { color: #7C3AED; background: #EDE9FE; }
.ref-stat div { min-width: 0; }
.ref-stat div > strong, .ref-stat div > span { display: block; }
.ref-stat > .ref-stat-icon { display: flex; align-items: center; justify-content: center; }
.ref-stat > .ref-stat-icon svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.ref-stat strong { color: #0F172A; font-size: 20px; line-height: 1.15; }
.ref-stat div span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
.ref-card { padding: 18px 16px; margin-bottom: 14px; background: #fff; border: 1px solid #E8EDF3; border-radius: 20px; box-shadow: 0 3px 14px rgba(15,23,42,.045); }
.ref-section-head { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ref-section-head span { display: block; margin-bottom: 3px; color: var(--ms); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ref-section-head h3 { color: #0F172A; font-size: 16px; line-height: 1.25; }
.ref-section-head > strong { color: var(--mp); font-size: 21px; }
.ref-how-list { display: grid; gap: 14px; }
.ref-how-list > div { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.ref-how-list > div:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 35px; height: 16px; width: 1px; background: #E2E8F0; }
.ref-how-list b { width: 31px; height: 31px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); font-size: 12px; }
.ref-how-list span, .ref-how-list strong, .ref-how-list small { display: block; }
.ref-how-list strong { color: #334155; font-size: 13px; }
.ref-how-list small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.ref-person { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #F1F5F9; }
.ref-person-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 13px; color: var(--mp); background: color-mix(in srgb, var(--mp) 9%, #fff); font-weight: 800; }
.ref-person-main { min-width: 0; flex: 1; }
.ref-person-main strong, .ref-person-main span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ref-person-main strong { color: #334155; font-size: 13px; }
.ref-person-main span { margin-top: 2px; color: #94A3B8; font-size: 10.5px; }
.ref-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; font-size: 9.5px; font-weight: 800; }
.ref-status.approved { color: #15803D; background: #DCFCE7; }
.ref-status.pending { color: #B45309; background: #FEF3C7; }
.ref-status.warning { color: #C2410C; background: #FFEDD5; }
.ref-status.rejected { color: #B91C1C; background: #FEE2E2; }
.ref-status.muted { color: #475569; background: #E2E8F0; }
.ref-empty { padding: 20px 8px 8px; text-align: center; color: var(--muted); }
.ref-empty > span { width: 52px; height: 52px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--mp); background: color-mix(in srgb, var(--mp) 8%, #fff); }
.ref-empty strong { display: block; color: #334155; font-size: 13px; }
.ref-empty p { margin-top: 4px; font-size: 11px; }

/* ---- Çekilişler ---- */
.draw-screen { padding-top: 2px; }
.draw-intro { margin-bottom:14px;padding:20px;display:flex;gap:14px;align-items:center;border-radius:22px;color:#fff;background:linear-gradient(140deg,var(--mp),color-mix(in srgb,var(--mp) 58%,#7C3AED));box-shadow:0 14px 30px color-mix(in srgb,var(--mp) 22%,transparent); }
.draw-intro>span { width:52px;height:52px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:17px;background:rgba(255,255,255,.14); }
.draw-intro small,.draw-section-title small { display:block;font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;opacity:.72; }
.draw-intro h2 { font-size:23px;line-height:1.15; }
.draw-intro p { margin-top:4px;font-size:11.5px;opacity:.75;line-height:1.4; }
.draw-tile { overflow:hidden;margin-bottom:14px;border:1px solid #E8EDF3;border-radius:21px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.055);cursor:pointer; }
.draw-tile>img,.draw-tile-art { width:100%;height:150px;object-fit:cover; }
.draw-tile-art { display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--mp) 88%,#0F172A),#7C3AED); }
.draw-tile-body { padding:16px; }
.draw-tile-top,.draw-tile-foot { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.draw-tile-top>small { color:var(--muted);font-size:10.5px; }
.draw-state { display:inline-flex;padding:5px 9px;border-radius:99px;font-size:9.5px;font-weight:800; }
.draw-state.upcoming { color:#1D4ED8;background:#DBEAFE; }.draw-state.published { color:#15803D;background:#DCFCE7; }.draw-state.closed { color:#B45309;background:#FEF3C7; }.draw-state.drawn { color:#6D28D9;background:#EDE9FE; }
.draw-tile h3 { margin-top:12px;color:#0F172A;font-size:17px;line-height:1.3; }.draw-tile-body>p { margin-top:3px;color:var(--mp);font-size:13px;font-weight:700; }
.draw-tile-foot { margin-top:15px;padding-top:12px;border-top:1px solid #F1F5F9;font-size:10.5px; }.draw-tile-foot span { display:flex;align-items:center;gap:5px;color:var(--muted); }.draw-tile-foot strong { color:var(--ms);font-size:10.5px; }
.draw-empty { padding:50px 20px;text-align:center;color:var(--muted);background:#fff;border-radius:21px; }.draw-empty svg { color:var(--mp); }.draw-empty h3 { margin-top:12px;color:#334155;font-size:15px; }.draw-empty p { margin-top:5px;font-size:11.5px; }
.draw-detail-hero { position:relative;overflow:hidden;min-height:230px;margin-bottom:14px;border-radius:23px;background:linear-gradient(140deg,var(--mp),#7C3AED);box-shadow:0 15px 34px color-mix(in srgb,var(--mp) 22%,transparent); }
.draw-detail-hero>img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }.draw-detail-hero::after { content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.05),rgba(15,23,42,.88)); }
.draw-detail-overlay { position:absolute;z-index:1;left:0;right:0;bottom:0;padding:22px;color:#fff; }.draw-detail-overlay>small { display:block;margin-top:26px;font-size:10px;opacity:.65;text-transform:uppercase;letter-spacing:.12em; }.draw-detail-overlay h2 { margin-top:3px;font-size:25px;line-height:1.16; }.draw-detail-overlay p { margin-top:4px;font-size:12px;opacity:.75; }
.draw-entry-banner,.draw-progress-card,.draw-mobile-card { margin-bottom:14px;padding:17px;background:#fff;border:1px solid #E8EDF3;border-radius:20px;box-shadow:0 3px 14px rgba(15,23,42,.045); }
.draw-entry-banner { display:flex;align-items:center;gap:12px;color:#166534;background:linear-gradient(135deg,#F0FDF4,#DCFCE7);border-color:#BBF7D0; }.draw-entry-banner.winner { color:#6D28D9;background:linear-gradient(135deg,#FAF5FF,#EDE9FE);border-color:#DDD6FE; }.draw-entry-banner>span { width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(255,255,255,.75); }.draw-entry-banner strong,.draw-entry-banner small { display:block; }.draw-entry-banner strong { font-size:13.5px; }.draw-entry-banner small { margin-top:2px;font-size:10.5px;opacity:.75; }
.draw-progress-card>div:first-child { display:flex;justify-content:space-between;align-items:center;color:#475569;font-size:12px; }.draw-progress-card>div strong { color:var(--mp);font-size:18px; }.draw-progress { height:8px;margin:10px 0 8px;overflow:hidden;border-radius:99px;background:#E2E8F0; }.draw-progress i { display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--ms),#7C3AED); }.draw-progress-card>small { color:var(--muted);font-size:10.5px; }
.draw-section-title { display:flex;align-items:center;gap:10px;margin-bottom:14px; }.draw-section-title>span { width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:12px;color:var(--mp);background:color-mix(in srgb,var(--mp) 9%,#fff); }.draw-section-title small { color:var(--ms);opacity:1; }.draw-section-title h3 { color:#0F172A;font-size:15px; }
.draw-condition { display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #F1F5F9; }.draw-condition>span { width:31px;height:31px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:10px;color:#B45309;background:#FEF3C7; }.draw-condition.met>span { color:#15803D;background:#DCFCE7; }.draw-condition>div { min-width:0;flex:1; }.draw-condition strong,.draw-condition small { display:block; }.draw-condition strong { color:#334155;font-size:12.5px; }.draw-condition small { margin-top:2px;color:var(--muted);font-size:10px; }.draw-condition>b { color:#B45309;font-size:9px; }.draw-condition.met>b { color:#15803D; }
.draw-join-btn { width:100%;min-height:52px;margin:12px 0;border:0;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:9px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary-dark));font-size:14px;font-weight:800;box-shadow:0 10px 24px color-mix(in srgb,var(--primary) 28%,transparent);cursor:pointer; }
.draw-join-btn:disabled { color:#64748B;background:#E2E8F0;box-shadow:none;cursor:not-allowed; }
.draw-description { color:#475569;font-size:12.5px;line-height:1.65;margin-bottom:12px; }.draw-info-row { display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #F1F5F9;font-size:11.5px; }.draw-info-row span { color:var(--muted); }.draw-info-row strong { color:#334155;text-align:right; }.draw-terms { margin-top:10px;padding:12px;border-radius:13px;background:#F8FAFC; }.draw-terms summary { color:var(--mp);font-size:11.5px;font-weight:800;cursor:pointer; }.draw-terms p { margin-top:9px;color:var(--muted);font-size:11px;line-height:1.55;white-space:pre-line; }
.draw-winner { display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid #F1F5F9; }.draw-winner b { width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:11px;color:#6D28D9;background:#EDE9FE; }.draw-winner span { color:#334155;font-size:13px;font-weight:700; }
.draw-prize-row { display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #F1F5F9; }.draw-prize-row>b { width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:12px;color:#92400E;background:linear-gradient(135deg,#FEF3C7,#FDE68A); }.draw-prize-row div { min-width:0; }.draw-prize-row small,.draw-prize-row strong { display:block; }.draw-prize-row small { color:var(--muted);font-size:9.5px; }.draw-prize-row strong { margin-top:2px;color:#1E293B;font-size:12.5px; }.draw-winner>small { margin-left:auto;color:#6D28D9;font-size:10px;font-weight:700;text-align:right; }
.event-point-warning { margin-top:10px;padding:8px 10px;border:1px solid #FDE68A;border-radius:10px;color:#92400E;background:#FFFBEB;font-size:10.5px;line-height:1.45; }

/* ---- İlerleme çubuğu ---- */
.bar { background: #F1F5F9; border-radius: 99px; height: 9px; overflow: hidden; }
.bar div { height: 100%; background: var(--mp); border-radius: 99px; }

/* ---- Alt gezinme ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: flex-end;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  color: var(--muted); font-size: 10.5px; font-weight: 600; max-width: 84px;
}
.bn-item svg { width: 23px; height: 23px; }
.bn-item.active { color: var(--mp); }
.bn-qr {
  width: 56px; height: 56px; border-radius: 50%; background: var(--mp); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-top: -26px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--mp) 50%, transparent); border: 4px solid var(--bg);
}
.bn-qr svg { width: 25px; height: 25px; }

/* ---- Çekmece menü ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(310px, 84vw); z-index: 61;
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  padding: calc(20px + env(safe-area-inset-top)) 18px 20px; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer .d-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.drawer .d-head .name { font-weight: 700; font-size: 15.5px; }
.drawer .d-head .no { font-size: 12px; color: var(--muted); }
.d-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 10px; border: 0; background: none; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; border-radius: 12px; text-align: left; }
.d-link:active { background: var(--bg); }
.d-link svg { color: var(--mp); flex-shrink: 0; }
.d-link.danger { color: var(--danger); }
.d-link.danger svg { color: var(--danger); }

.empty-note { text-align: center; color: var(--muted); font-size: 13.5px; padding: 26px 10px; }
.center { text-align: center; }
.mt { margin-top: 14px; }

@media (max-width: 560px) {
  .auth-page { padding: 16px 12px; justify-content: flex-start; overflow-y: auto; }
  .auth-shell { margin: auto 0; }
  .auth-card { border-radius: 23px; padding: 25px 19px calc(22px + env(safe-area-inset-bottom)); }
  .auth-logo { margin-bottom: 18px; }
  .auth-brand { margin-bottom: 21px; }
  .auth-brand h1, .auth-success h1 { font-size: 23px; }
  .auth-step small { font-size: 8.5px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .auth-actions { grid-template-columns: 1fr; gap: 3px; }
  .auth-actions .auth-primary { grid-row: 1; }
  .auth-actions .auth-back { grid-row: 2; }
  .auth-inline > span { display: none; }
  .auth-inline { justify-content: flex-end; }
}

button:focus-visible, .inp:focus-visible, .check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--ms) 38%, transparent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (min-width: 561px) {
  .app-header, .hero { margin: 0 -16px 14px; border-radius: 0 0 18px 18px; }
}
