:root {
  --blue: #1d6cf2;
  --blue-2: #0b47c9;
  --blue-soft: #e7f0ff;
  --bg: #eef3fb;
  --card: #ffffff;
  --text: #0f1b33;
  --muted: #6b7a99;
  --line: #e3e9f4;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --gold: #f5b301;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(20, 50, 110, .08);
  --shadow-lg: 0 12px 36px rgba(20, 50, 110, .16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* ---------- Üst çubuk ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-top) + 10px) 16px 10px;
  background: rgba(238, 243, 251, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  display: flex; align-items: center; gap: 10px;
  min-height: 56px;
}
#topbar.brand-bar {
  background: linear-gradient(135deg, #2a7bff, var(--blue-2));
  color: #fff;
}
#topbar h1 { font-size: 18px; margin: 0; font-weight: 700; flex: 1; letter-spacing: -.2px; }
#topbar .brand { display: flex; align-items: center; gap: 10px; flex: 1; }
#topbar .brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#topbar .brand b { font-size: 20px; letter-spacing: -.4px; font-weight: 800; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; color: inherit;
}
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-bar .icon-btn { background: rgba(255,255,255,.16); }
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* ---------- İçerik ---------- */
#view {
  padding: 14px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
}
#view.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 28px); }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 2px 10px; font-size: 17px; font-weight: 700;
}
.section-title a { font-size: 13px; font-weight: 600; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 14px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(29, 108, 242, .28);
  transition: transform .12s ease, opacity .12s ease;
  width: 100%;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.sm { height: 38px; font-size: 14px; border-radius: 11px; padding: 0 14px; width: auto; box-shadow: none; }
.btn.ghost { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.btn.outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.btn.green { background: var(--green); box-shadow: 0 6px 16px rgba(22,163,74,.25); }
.btn.red { background: var(--red); box-shadow: 0 6px 16px rgba(239,68,68,.25); }
.btn.light { background: #f1f4fa; color: var(--text); box-shadow: none; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px 4px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #f8faff;
  font-size: 16px; /* iOS zoom engelle */
  outline: none; transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--blue); background: #fff; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 4px 0; }

.segment {
  display: flex; background: #e3eaf6; border-radius: 13px; padding: 4px; gap: 4px;
}
.segment button, .segment a {
  flex: 1; height: 38px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.segment .active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(20,50,110,.1); }
.segment.scroll { overflow-x: auto; scrollbar-width: none; }
.segment.scroll::-webkit-scrollbar { display: none; }
.segment.scroll button, .segment.scroll a { flex: 0 0 auto; padding: 0 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 18px; background: #fff;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip .count { background: rgba(0,0,0,.1); border-radius: 9px; padding: 1px 7px; font-size: 12px; }
.chip.active .count { background: rgba(255,255,255,.25); }

/* ---------- Bilgi kutuları ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45;
  background: var(--blue-soft); color: #1e3a8a;
}
.notice.amber { background: var(--amber-soft); color: #92400e; }
.notice.green { background: var(--green-soft); color: #166534; }
.notice.red { background: var(--red-soft); color: #991b1b; }
.notice .ico { font-size: 16px; line-height: 1.2; }

/* ---------- Giriş ---------- */
.auth {
  min-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--safe-top) + 10px);
}
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-hero img { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.auth-hero h1 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -1px; color: #102a6b; }
.auth-hero h1 span { color: var(--blue); }
.auth-hero p { margin: 6px 0 0; color: var(--muted); font-style: italic; }
.auth .features { display: flex; justify-content: space-around; margin: 18px 0 4px; }
.auth .features div { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; width: 25%; }
.auth .features span { display: block; font-size: 24px; margin-bottom: 4px; }

/* ---------- Profil kartı ---------- */
.hero-card {
  background: linear-gradient(140deg, #ffffff 0%, #f3f7ff 100%);
  border-radius: 22px; box-shadow: var(--shadow); padding: 16px;
}
.avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 24px; text-transform: uppercase;
  box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(20,50,110,.2);
}
.avatar.sm { width: 38px; height: 38px; font-size: 16px; box-shadow: 0 0 0 2px #fff; }
.avatar.lg { width: 92px; height: 92px; font-size: 38px; }
.uname { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.verified { width: 17px; height: 17px; }
.level-line { font-size: 13px; color: var(--muted); margin-top: 2px; }
.progress { height: 8px; background: #dfe7f5; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #3b8bff, var(--blue-2)); border-radius: 4px; transition: width .6s ease; }
.progress-label { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.stat .coin {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 30% 30%, #ffe27a, #f5b301 60%, #d48c00);
  display: flex; align-items: center; justify-content: center; color: #8a5a00; font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.stat .big { font-size: 19px; font-weight: 800; line-height: 1.1; }
.stat .sub { font-size: 12px; color: var(--muted); }
.stat.vertical { flex-direction: column; text-align: center; gap: 2px; padding: 12px 6px; }
.stat.vertical .ico { font-size: 20px; }

/* ---------- Banner ---------- */
.banner {
  margin-top: 14px; border-radius: 22px; padding: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #3d7dff 0%, #1240b8 55%, #0a2a7a 100%);
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.banner h3 { margin: 0 0 4px; font-size: 20px; }
.banner p { margin: 0 0 12px; font-size: 14px; color: #ffd84d; font-weight: 600; }
.banner .emoji { font-size: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.banner .btn { background: #fff; color: var(--blue-2); width: auto; height: 40px; font-size: 14px; box-shadow: none; }

.announce {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fff7e0;
  color: #7a5300; font-size: 14px; display: flex; gap: 10px; box-shadow: var(--shadow);
}

/* ---------- Kategori ---------- */
.cat-scroller { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-mini {
  flex: 0 0 auto; width: 112px; border-radius: 18px; padding: 12px; color: #fff;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: var(--shadow);
}
.cat-mini .e { font-size: 30px; }
.cat-mini .n { font-weight: 700; font-size: 14px; margin-top: 6px; }
.cat-mini .p { font-size: 12px; opacity: .92; margin-top: 2px; font-weight: 600; }

.task {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 12px;
  display: flex; gap: 14px; margin-bottom: 12px;
}
.task .thumb {
  width: 104px; min-height: 120px; border-radius: 14px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 50%, #000));
  display: flex; align-items: center; justify-content: center; font-size: 46px;
  position: relative; overflow: hidden;
}
.task .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,.35), transparent 60%);
}
.task .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--c, var(--blue));
}
.task h3 { margin: 6px 0 4px; font-size: 17px; }
.task p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; flex: 1; }
.task .reward { font-weight: 700; font-size: 14px; margin: 8px 0; display: flex; align-items: center; gap: 4px; }
.task .reward small { color: var(--muted); font-weight: 600; }
.task .btn { height: 40px; font-size: 14px; border-radius: 12px; box-shadow: none; }

/* ---------- Liste ---------- */
.list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); color: inherit; width: 100%; text-align: left;
}
.list-item:last-child { border-bottom: 0; }
.list-item .ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto;
}
.list-item .chev { color: #b4c0d6; font-size: 20px; }
.list-item.danger { color: var(--red); }
.list-item.danger .ico { background: var(--red-soft); }
.pthumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #e3e9f4; flex: 0 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.approved, .badge.paid { background: var(--green-soft); color: var(--green); }
.badge.rejected { background: var(--red-soft); color: var(--red); }
.plus { color: var(--green); font-weight: 800; }
.minus { color: var(--red); font-weight: 800; }

/* ---------- Fotoğraf ızgarası ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid .cell { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e3e9f4; }
.grid .cell img { width: 100%; height: 100%; object-fit: cover; }
.grid .cell .badge { position: absolute; left: 6px; bottom: 6px; font-size: 10px; padding: 2px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ---------- Yükleme ---------- */
.drop {
  border: 2px dashed #a9c3f2; border-radius: 20px; background: #f5f9ff;
  padding: 30px 16px; text-align: center;
}
.drop .big-ico {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
}
.drop .big-ico svg { width: 34px; height: 34px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop h3 { margin: 0 0 4px; }
.preview { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.preview img { width: 100%; max-height: 420px; object-fit: contain; margin: 0 auto; }
.preview .change {
  position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff;
  border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cat-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-pick label {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px;
  background: #fff; border: 2px solid var(--line); cursor: pointer;
}
.cat-pick input { display: none; }
.cat-pick .e { font-size: 22px; }
.cat-pick .n { font-weight: 700; font-size: 14px; line-height: 1.2; }
.cat-pick .p { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-pick input:checked + label { border-color: var(--blue); background: var(--blue-soft); }

.reward-box {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #bbf7d0;
}
.reward-box .star { font-size: 38px; }
.reward-box .lbl { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.reward-box .val { font-size: 24px; font-weight: 900; color: var(--green); }
.reward-box .tl { font-size: 14px; font-weight: 700; color: var(--text); }

.upbar { height: 8px; background: #dfe7f5; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }

.success { text-align: center; padding: 18px 4px; }
.success .big {
  width: 110px; height: 110px; margin: 10px auto 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dbe8ff, #b7d0ff);
  display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative;
  animation: pop .45s cubic-bezier(.2,1.6,.4,1);
}
.success .big::after {
  content: "✓"; position: absolute; right: 0; bottom: 4px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff;
}
.success h2 { margin: 0 0 6px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Kategori ızgarası (ana sayfa) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 14px; min-height: 132px; color: #fff;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 52%, #000));
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .12s ease;
}
.cat-card:active { transform: scale(.97); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 15% 0%, rgba(255,255,255,.28), transparent 60%);
}
.cat-card .e { font-size: 36px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.cat-card .n { font-weight: 800; font-size: 17px; margin-top: auto; padding-top: 10px; }
.cat-card .s { font-size: 12px; opacity: .92; font-weight: 600; margin-top: 2px; }
.cat-card .mini { height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin-top: 8px; overflow: hidden; }
.cat-card .mini i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.cat-card .done-all {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.95); color: var(--green);
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px;
}
.adult-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 900;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(220,38,38,.45);
}
.pill.adult, .badge.adult-b { background: #dc2626; color: #fff; font-weight: 800; }

/* ---------- 18+ Yaş Doğrulaması ---------- */
.age-gate { position: relative; text-align: center; padding: 26px 18px 20px; }
.age-shield {
  position: relative; width: 92px; height: 92px; margin: 4px auto 14px; border-radius: 26px;
  background: linear-gradient(145deg, #e0edff, #bfd7ff);
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  box-shadow: 0 10px 24px rgba(29,108,242,.18);
}
.age-shield span { position: absolute; right: -4px; bottom: -4px; font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.age-gate h2 { margin: 0 0 8px; font-size: 22px; }
.age-gate > p { margin: 0 auto 18px; max-width: 340px; font-size: 14px; line-height: 1.5; }
.age-check {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; margin-bottom: 14px; border-radius: 16px;
  background: #f3f7ff; border: 1.5px solid #cfe0ff; font-weight: 700; font-size: 15px; cursor: pointer;
}
.age-check input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--blue); margin: 0; }
.age-back { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--blue); font-size: 14px; }

/* ---------- Kategori sayfası ---------- */
.cat-hero {
  border-radius: 22px; padding: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 45%, #000));
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.cat-hero .e { font-size: 54px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.cat-hero h2 { margin: 0; font-size: 24px; }
.cat-hero p { margin: 2px 0 8px; opacity: .9; font-size: 14px; }
.cat-hero .mini { height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.cat-hero .mini i { display: block; height: 100%; background: #fff; }

.task-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 14px; margin-top: 12px;
  border-left: 5px solid var(--c);
}
.task-card .top { display: flex; align-items: flex-start; gap: 12px; }
.task-card .no {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; font-weight: 900;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--c);
}
.task-card h3 { margin: 0 0 3px; font-size: 17px; }
.task-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.task-card .info { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #f1f5fd; }
.pill.gold { background: #fff6dc; color: #8a5a00; }
.task-card .btn { height: 44px; font-size: 15px; border-radius: 13px; }

/* ---------- Çoklu fotoğraf alanı ---------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 2px dashed #a9c3f2; background: #f5f9ff; color: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
}
.slot b { font-size: 28px; line-height: 1; font-weight: 400; }
.slot small { font-size: 11px; font-weight: 700; color: var(--muted); }
.slot.filled { border: 0; background: #0f172a; }
.slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.slot .rm {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.slot .num {
  position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); color: var(--text);
  font-size: 11px; font-weight: 800; border-radius: 7px; padding: 1px 7px;
}
.counter { text-align: center; font-weight: 700; margin: 10px 0 2px; font-size: 14px; }

/* ---------- Fotoğraf şeridi (gönderi içi) ---------- */
.shots { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; scroll-snap-align: start; object-fit: cover; background: #0f172a; cursor: zoom-in; }
.review .shots { background: #0f172a; padding: 0; gap: 0; }
.review .img-wrap .shots img { width: 100%; flex: 0 0 100%; height: 310px; max-height: none; min-height: 0; margin: 0; object-fit: contain; }
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.shot-nav.prev { left: 8px; }
.shot-nav.next { right: 8px; }
.review-thumbs {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #16213a; overflow-x: auto;
}
.review-thumbs button[data-act="thumb"] {
  position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; overflow: hidden;
  padding: 0; opacity: .55; border: 2px solid transparent; background: #0f172a;
}
.review-thumbs button[data-act="thumb"].active { opacity: 1; border-color: #60a5fa; }
.review-thumbs button[data-act="thumb"] img { width: 100%; height: 100%; object-fit: cover; }
.review-thumbs button[data-act="thumb"] span {
  position: absolute; left: 4px; bottom: 3px; background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 5px; padding: 0 5px;
}
.review-thumbs .zoom-all {
  margin-left: auto; flex: 0 0 auto; padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 700;
}
.thumbs { display: flex; gap: 4px; margin-top: 8px; }
.thumbs img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #e3e9f4; }
.sub-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; display: block; width: 100%; text-align: left; }

/* ---------- Görseller (kategori / görev) ---------- */
.cat-card.has-img { background-size: cover; background-position: center; }
.cat-card.has-img .e { font-size: 26px; }
.task-img { display: block; width: calc(100% + 28px); max-width: none; height: 160px; object-fit: cover; margin: -14px -14px 12px; border-radius: 15px 20px 0 0; background: #e3e9f4; }
.img-pick { border-radius: 14px; overflow: hidden; background: #f1f5fd; border: 1.5px dashed var(--line); }
.img-pick img { width: 100%; height: 150px; object-fit: cover; }
.img-ph { height: 90px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.field label.btn { display: inline-flex; margin: 0; font-size: 14px; color: var(--blue); }
.auth-hero h1 { background: linear-gradient(90deg, #102a6b, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Yönetici ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-stats .s { background: #fff; border-radius: 14px; padding: 10px; box-shadow: var(--shadow); text-align: center; }
.admin-stats .s b { display: block; font-size: 18px; }
.admin-stats .s span { font-size: 11px; color: var(--muted); font-weight: 600; }
.review {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.review .img-wrap { position: relative; background: #0f172a; }
.review .img-wrap img { width: 100%; max-height: 460px; object-fit: contain; margin: 0 auto; cursor: zoom-in; min-height: 180px; }
.review .img-wrap .badge { position: absolute; left: 10px; top: 10px; }
.review .meta { padding: 12px 14px 4px; }
.review .meta .who { font-weight: 800; font-size: 16px; }
.review .meta dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
.review .meta dt { color: var(--muted); }
.review .meta dd { margin: 0; font-weight: 600; }
.review .note { margin: 8px 0 0; padding: 8px 10px; background: #f5f8fe; border-radius: 10px; font-size: 13px; font-style: italic; }
.review .actions { display: flex; gap: 8px; padding: 12px 14px 14px; }
.review .actions .btn { height: 44px; font-size: 15px; }
.review .actions .more { flex: 0 0 44px; width: 44px; padding: 0; }

.copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #f1f5fd; padding: 6px 8px; border-radius: 8px; word-break: break-all; }

/* ---------- Alt sekme çubuğu ---------- */
#tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30;
  width: 100%; max-width: 560px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(15,27,51,.06);
  display: flex; align-items: stretch;
}
#tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #8a97b2; font-size: 11px; font-weight: 600;
}
#tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#tabbar a.active { color: var(--blue); }
#tabbar a.active svg { fill: rgba(29,108,242,.14); }

/* ---------- Sayfa altı sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,20,40,.45); opacity: 0; transition: opacity .25s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(var(--safe-bottom) + 20px);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #d6deeb; margin: 0 auto 12px; }
.sheet h3 { margin: 4px 0 6px; font-size: 19px; }
.sheet p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet .opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sheet .opts button { text-align: left; padding: 12px 14px; border-radius: 12px; background: #f3f6fc; font-weight: 600; }
.sheet .opts button.active { background: var(--blue-soft); color: var(--blue); outline: 2px solid var(--blue); }

/* ---------- Görüntüleyici ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94);
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 14px);
  animation: fade .2s;
}
.viewer-top { display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.viewer-count {
  color: #fff; font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 999px;
}
.viewer .close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.viewer-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; margin: 8px 0;
}
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
.viewer-nav.prev { left: 4px; }
.viewer-nav.next { right: 4px; }
.viewer .cap { color: rgba(255,255,255,.88); font-size: 13px; margin: 4px 0 6px; text-align: center; }
.viewer-thumbs { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 4px 0; }
.viewer-thumbs button {
  position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; overflow: hidden;
  padding: 0; opacity: .5; border: 2px solid transparent; background: #0f172a;
}
.viewer-thumbs button.active { opacity: 1; border-color: #fff; }
.viewer-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.viewer-thumbs button span {
  position: absolute; left: 4px; bottom: 3px; background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 5px; padding: 0 5px;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Rozetler ---------- */
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach .a {
  background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow);
  filter: grayscale(1); opacity: .45;
}
.ach .a.ok { filter: none; opacity: 1; }
.ach .a .e { font-size: 30px; }
.ach .a .n { font-weight: 800; font-size: 13px; margin-top: 4px; }
.ach .a .d { font-size: 11px; color: var(--muted); margin-top: 2px; }

.check {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  background: #f5f8fe; border-radius: 14px; font-weight: 600; cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--blue); margin: 0; }

/* ---------- Diğer ---------- */
#toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); transform: translate(-50%, -150%);
  z-index: 200; max-width: calc(100% - 32px);
  background: #0f1b33; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2,.9,.3,1); pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#toast.error { background: var(--red); }
#toast.success { background: var(--green); }

.loading { display: flex; justify-content: center; padding: 60px 0; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3.5px solid #d4e0f5; border-top-color: var(--blue); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .e { font-size: 44px; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-size: 16px; }
.footer-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.5; }

@media (min-width: 600px) {
  body { background: linear-gradient(180deg, #dfe9fb, #eef3fb 40%); }
  .grid { grid-template-columns: repeat(4, 1fr); }
}
