/* ---------- personel mobil uygulaması ---------- */
body { min-height: 100dvh; background: var(--bg); overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
.app { max-width: 520px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }
.app-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.app-top .hi { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.app-top .nm { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.view { animation: pageIn .35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* hero */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 22px 22px 26px; text-align: center;
  background: radial-gradient(500px 300px at 0% 0%, #4f7bff 0%, transparent 60%), radial-gradient(420px 320px at 100% 100%, #8b5cf6 0%, transparent 60%), #13235e;
  box-shadow: 0 20px 50px -20px rgba(40, 70, 200, .55);
}
.hero.in { background: radial-gradient(500px 300px at 0% 0%, #19b37a 0%, transparent 60%), radial-gradient(420px 320px at 100% 100%, #2f8fef 0%, transparent 60%), #0b3d3a; box-shadow: 0 20px 50px -20px rgba(10, 140, 100, .5); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.hero > * { position: relative; }
.hero .status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 30px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; }
.hero .status .dot { width: 8px; height: 8px; border-radius: 50%; background: #9fb3d9; }
.hero.in .status .dot { background: #5ef0a5; box-shadow: 0 0 0 0 #5ef0a5; animation: pulse 1.8s infinite; }
.hero .clock { font-size: 54px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 18px; }
.hero .clock span { opacity: .55; font-size: 26px; font-weight: 600; margin-left: 2px; }
.hero .date { opacity: .75; font-size: 14px; margin-top: 6px; }

.punch-wrap { position: relative; width: 196px; height: 196px; margin: 26px auto 4px; }
.punch-wrap .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); animation: ring 2.6s var(--ease) infinite; }
.punch-wrap .ring:nth-child(2) { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(.82); opacity: 1; } to { transform: scale(1.14); opacity: 0; } }
.punch {
  position: absolute; inset: 18px; border-radius: 50%; border: 0; cursor: pointer; color: #13235e; font: inherit;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e8eeff 100%);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,.45), inset 0 -6px 14px rgba(40, 70, 200, .12), 0 0 0 8px rgba(255,255,255,.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.hero.in .punch { color: #0b3d3a; background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e4fbf1 100%); }
.punch:active { transform: scale(.95); }
.punch svg.i { width: 44px; height: 44px; stroke-width: 1.6; }
.punch b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.punch small { font-size: 11.5px; font-weight: 600; opacity: .6; }
.hero .sub { font-size: 12.5px; opacity: .7; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero .sub svg.i { width: 14px; height: 14px; }

.alts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.alt {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; color: var(--text); cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); transition: transform .12s;
}
.alt:active { transform: scale(.97); }
.alt .ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alt b { display: block; font-size: 14.5px; }
.alt span { font-size: 12px; color: var(--muted); }

.today { margin-top: 14px; padding: 18px; }
.today .big { font-size: 30px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 8px; background: var(--neutral-soft); overflow: hidden; margin: 12px 0 6px; }
.progress > div { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .8s var(--ease); }
.tl { margin-top: 14px; }
.tl .it { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.tl .it:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 46px; bottom: -8px; width: 2px; background: var(--border); }
.tl .dotc { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tl .tm { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }

/* alt menü */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; gap: 4px; padding: 6px; border-radius: 24px; width: min(420px, calc(100vw - 28px));
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.8) blur(18px); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.tabbar button { flex: 1; border: 0; background: transparent; font: inherit; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 18px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.tabbar button svg.i { width: 21px; height: 21px; }
.tabbar button.on { background: var(--primary-soft); color: var(--primary-text); }

/* puantaj */
.month-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.month-nav h2 { flex: 1; text-align: center; text-transform: capitalize; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { padding: 13px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 550; }
.day-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.day-row:last-child { border-bottom: 0; }
.day-num { width: 42px; text-align: center; flex-shrink: 0; }
.day-num b { display: block; font-size: 18px; font-weight: 750; line-height: 1.1; }
.day-num span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.day-bar { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }

/* izin halkası */
.ring-meter { display: flex; align-items: center; gap: 18px; padding: 18px; }
.ring-meter svg { width: 96px; height: 96px; transform: rotate(-90deg); flex-shrink: 0; }
.ring-meter .track { stroke: var(--neutral-soft); }
.ring-meter .val { stroke: url(#rg); transition: stroke-dashoffset 1s var(--ease); }

/* giriş ekranı */
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: calc(40px + env(safe-area-inset-top)) 24px 80px; text-align: center;
  background: radial-gradient(500px 300px at 0% 0%, #4f7bff 0%, transparent 60%), radial-gradient(420px 320px at 100% 100%, #8b5cf6 0%, transparent 60%), #13235e;
}
.auth-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.auth-hero > * { position: relative; }
.auth-hero .lm { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.auth-hero .lm svg.i { width: 32px; height: 32px; }
.auth-hero h1 { color: #fff; font-size: 26px; }
.auth-hero p { opacity: .75; margin-top: 6px; }
.auth-card { max-width: 440px; width: calc(100% - 32px); margin: -52px auto 30px; padding: 22px; position: relative; border-radius: 24px; box-shadow: var(--shadow-lg); }
.kvkk { font-size: 12.5px; color: var(--text-2); max-height: 150px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; white-space: pre-wrap; margin: 4px 0 12px; line-height: 1.55; }

/* sonuç ekranı */
.result {
  position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 24px;
  animation: fade .25s ease;
}
.result.in { background: radial-gradient(600px 400px at 50% 30%, #19c37f 0%, #0a7a52 70%); }
.result.out { background: radial-gradient(600px 400px at 50% 30%, #4f7bff 0%, #1e3aa8 70%); }
.result .ck { width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; animation: popIn .5s var(--ease); }
.result .ck svg { width: 64px; height: 64px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.result .ck path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
.result h1 { color: #fff; font-size: 28px; margin-top: 26px; }
.result .t { font-size: 64px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 10px; }
.result p { opacity: .8; margin-top: 8px; font-size: 15px; }

.busy { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); font-weight: 600; animation: fade .2s; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan-box { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-box .frame { position: absolute; inset: 18%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.scan-box .frame::before { content: ''; position: absolute; inset: 0; border-radius: 22px; border: 3px solid #fff; mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat; -webkit-mask: linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat; }
.scan-box .line { position: absolute; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, transparent, #6fd3a5, transparent); top: 20%; animation: scan 2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 80%; } }
.nfc-anim { width: 130px; height: 130px; margin: 10px auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); position: relative; }
.nfc-anim::before, .nfc-anim::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: ring 2s var(--ease) infinite; }
.nfc-anim::after { animation-delay: 1s; }
.nfc-anim svg.i { width: 50px; height: 50px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }

/* ---------- araç ---------- */
.trip-start { padding: 26px 22px; text-align: center; }
.trip-start .ic { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.trip-start .ic .i { width: 32px; height: 32px; }
.trip-start p { margin: 6px 0 18px; }
.trip-live { padding: 20px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.trip-live .tl-time { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.plate-s { border: 1.5px solid #1b1f29; border-radius: 6px; background: #fff; color: #11141b; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; font-size: 14px; }
.photo-pick, .field .photo-pick { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.photo-pick .pp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); }
.photo-pick .pp-empty .i { width: 28px; height: 28px; }
.photo-pick img { width: 100%; max-height: 240px; object-fit: cover; }
.tabbar button { min-width: 0; }
