/* Mükellef360 — "Üç adımda başlayın" sağ sütun sahnesi (bloklar/adimlar/sahne.php).
   480×534 tasarım tuvali JS ile sütun genişliğine ölçeklenir. Taban stiller son durumdur; giriş animasyonları
   yalnız etkin sahnede (.is-on) koşar, azaltılmış harekette hiç koşmaz. */

.m360-steps-right { overflow: visible; }
.m360-stg {
  --p: #0088e8; --pd: #0b5fb0; --navy: #102840; --ink: #1b2b3c; --mut: #56677a; --line: #e3eaf2; --soft: #e6f3ff;
  --ok: #0f7d4e; --okbg: #e6f6ee; --warn: #b35507; --warnbg: #fdeee2;
  --out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; aspect-ratio: 480 / 534; border-radius: 1.5rem; overflow: hidden; color: var(--ink);
  font-size: 12px; line-height: 1.35; text-align: left;
  background: radial-gradient(90% 70% at 100% 100%, rgba(0, 136, 232, .85) 0%, rgba(0, 136, 232, 0) 70%),
              linear-gradient(155deg, #0a2f57 0%, #0b5fb0 58%, #0a74cf 100%);
  box-shadow: 0 40px 80px -40px rgba(16, 40, 64, .55);
}
.m360-stg *, .m360-stg *::before, .m360-stg *::after { box-sizing: border-box; }
.m360-stg-bg { position: absolute; inset: 0; pointer-events: none; }
.m360-stg-bg::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 75%); }
.m360-stg-bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.m360-stg-bg .g1 { width: 300px; height: 300px; left: -80px; top: -60px; background: #2aa3ff; animation: stg-d1 18s ease-in-out infinite alternate; }
.m360-stg-bg .g2 { width: 260px; height: 260px; right: -60px; bottom: -40px; background: #5fe0ea; opacity: .35; animation: stg-d2 22s ease-in-out infinite alternate; }

/* tuval: 480×534, script.js --s ile ölçekler */
.m360-stg-cv { position: absolute; left: 0; top: 0; width: 480px; height: 534px; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.m360-stg-tabs { position: absolute; z-index: 3; left: 20px; right: 20px; top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m360-stg-tabs span { position: relative; z-index: 1; text-align: center; padding: 6px 4px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .85); white-space: nowrap; transition: color .35s; }
.m360-stg-tabs span.is-on { color: var(--navy); }
.m360-stg-tabs .th { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #fff;
  box-shadow: 0 6px 14px -6px rgba(4, 22, 48, .5); transform: translateX(calc(var(--n, 0) * 100%)); transition: transform .55s var(--out); }

/* sahne geçişi */
.m360-stg-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985);
  transition: opacity .4s var(--out), transform .55s var(--out), visibility 0s .5s; }
.m360-stg-sc.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }

/* kart */
.m360-stg-card { position: absolute; padding: 12px 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 26px 50px -22px rgba(4, 22, 48, .6), 0 2px 6px rgba(4, 22, 48, .14); }
.m360-stg-card b { font-weight: 600; color: var(--navy); }
.m360-stg-card small { display: block; color: var(--mut); font-size: 11px; }
.m360-stg .pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--pd); font-size: 11px; font-weight: 600; white-space: nowrap; }
.m360-stg .pill.ok { background: var(--okbg); color: var(--ok); }
.m360-stg .hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.m360-stg .av { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--pd); font-size: 10px; font-weight: 700; }
.m360-stg .av.lg { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.is-on .m360-stg-card { animation: stg-in .6s var(--out) both; }

/* 1 · içe aktarma */
.s1-file { left: 26px; top: 66px; width: 300px; display: flex; align-items: center; gap: 11px; }
.s1-file .xl { flex: none; width: 36px; height: 40px; border-radius: 7px; display: grid; place-items: center; background: #1d7a46; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.s1-file .bd { flex: 1; min-width: 0; }
.s1-file .bar { display: block; height: 5px; margin-top: 7px; border-radius: 99px; background: #edf2f7; overflow: hidden; }
.s1-file .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--p), var(--pd)); transform-origin: left; }
.s1-file .st { display: grid; font-size: 11px; font-weight: 600; white-space: nowrap; }
.s1-file .st > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; }
.s1-file .up { color: var(--pd); opacity: 0; }
.s1-file .ok { color: var(--ok); }
.s1-file .ok svg { width: 12px; height: 12px; }
.is-on .s1-file .bar i { animation: stg-fill 1.1s .35s cubic-bezier(.65, 0, .35, 1) both; }
.is-on .s1-file .up { animation: stg-out 1.45s both; }
.is-on .s1-file .ok { animation: stg-pop .45s 1.5s var(--spring) both; }
.s1-list { left: 150px; top: 148px; width: 304px; z-index: 1; animation-delay: .35s !important; }
.s1-list .rw { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 2px; border-top: 1px solid #f0f3f7; }
.s1-list .nm { flex: 1; font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s1-list .ch { font-size: 10.5px; font-weight: 600; color: var(--ok); }
.is-on .s1-list .rw { animation: stg-drop .5s var(--out) both; animation-delay: calc(var(--i) * 140ms + 900ms); }
.is-on .s1-list .hd .pill { animation: stg-pop .45s 1.7s var(--spring) both; }
.s1-kunye { left: 30px; top: 336px; width: 318px; z-index: 2; animation-delay: 1.4s !important; }
.s1-kunye .hd { justify-content: flex-start; gap: 10px; margin-bottom: 8px; }
.s1-kunye .kv { display: flex; align-items: center; gap: 10px; padding: 8px 0 0; margin-top: 8px; border-top: 1px solid #f0f3f7; }
.s1-kunye .kv > span:first-child { width: 72px; flex: none; color: var(--mut); font-size: 11px; }
.s1-kunye .pw { flex: 1; display: flex; gap: 4px; }
.s1-kunye .pw i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.is-on .s1-kunye .pw i { animation: stg-pop .3s var(--spring) both; animation-delay: calc(var(--k) * 70ms + 1.9s); }
.s1-kunye .lock { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--okbg); color: var(--ok); }
.s1-kunye .lock svg { width: 13px; height: 13px; }
.is-on .s1-kunye .lock { animation: stg-pop .45s 2.5s var(--spring) both; }
.s1-kunye .team { flex: 1; display: flex; }
.s1-kunye .team i { width: 24px; height: 24px; margin-right: -6px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: var(--pd); }
.s1-kunye .team i:nth-child(2) { background: #14975f; } .s1-kunye .team i:nth-child(3) { background: #7b5cd6; }
.is-on .s1-kunye .team i { animation: stg-pop .4s var(--spring) both; animation-delay: calc(var(--k) * 120ms + 2.7s); }
.is-on .s1-kunye .kv .pill { animation: stg-pop .45s 3.15s var(--spring) both; }

/* 2 · sıklık */
.s2-freq { left: 26px; top: 64px; width: 292px; }
.s2-freq .tt { display: block; margin-bottom: 10px; font-size: 13px; }
.s2-freq .seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; margin-bottom: 8px; border-radius: 10px; background: #f0f4f9; }
.s2-freq .seg span { position: relative; z-index: 1; text-align: center; padding: 6px 0; font-size: 11.5px; font-weight: 500; color: var(--mut); }
.s2-freq .seg span.on { color: var(--navy); font-weight: 600; }
.s2-freq .seg .th { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(16, 40, 64, .14); transform: translateX(100%); }
.is-on .s2-freq .seg .th { animation: stg-seg 1.4s .5s var(--out) both; }
.s2-freq .tg { display: flex; align-items: center; gap: 8px; height: 34px; border-top: 1px solid #f0f3f7; }
.s2-freq .tg span { flex: 1; font-weight: 500; color: var(--navy); }
.s2-freq .tg small { font-size: 10.5px; }
.s2-freq .tg i { position: relative; width: 30px; height: 17px; border-radius: 99px; background: var(--p); transition: background .3s; }
.s2-freq .tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transform: translateX(13px); }
.is-on .s2-freq .tg i { animation: stg-tog-bg .4s both; animation-delay: calc(var(--k) * 220ms + 1.5s); }
.is-on .s2-freq .tg i::after { animation: stg-tog .4s var(--out) both; animation-delay: calc(var(--k) * 220ms + 1.5s); }
.s2-cal { left: 200px; top: 272px; width: 258px; padding-bottom: 10px; z-index: 1; animation-delay: .5s !important; }
.s2-cal .dw, .s2-cal .gr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.s2-cal .dw span { font-size: 9.5px; font-weight: 600; color: var(--mut); padding-bottom: 2px; }
.s2-cal .gr span { position: relative; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: 10.5px; color: var(--ink); background: #f6f9fc; }
.s2-cal .gr span.e { background: transparent; }
.s2-cal .gr span.dt { background: var(--soft); color: var(--pd); font-weight: 600; }
.s2-cal .gr span.dt::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--p); }
.is-on .s2-cal .gr span.dt { animation: stg-lit .45s both; animation-delay: calc(var(--k) * 180ms + 1.3s); }
.s2-cal .gr span.pl { background: linear-gradient(135deg, #f08a2c, #e16e0a); color: #fff; font-weight: 700; box-shadow: 0 6px 12px -4px rgba(225, 110, 10, .6); }
.is-on .s2-cal .gr span.pl { animation: stg-pop .5s 2.3s var(--spring) both; }
.is-on .s2-cal .hd .pill { animation: stg-pop .45s 2.5s var(--spring) both; }
.s2-note { left: 16px; top: 440px; width: 190px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 12px; animation-delay: 2.7s !important; }
.s2-note .bell { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--warnbg); color: var(--warn); }
.s2-note .bell svg { width: 16px; height: 16px; }
.is-on .s2-note .bell svg { animation: stg-ring .9s 3.1s both; }

/* 3 · güncel tablo */
.s3-tbl { left: 24px; top: 66px; width: 300px; }
.s3-tbl .hd small { display: inline; }
.s3-tbl .th, .s3-tbl .tr { display: grid; grid-template-columns: 1fr 50px 58px 50px; align-items: center; gap: 4px; }
.s3-tbl .th span { font-size: 9.5px; font-weight: 700; color: var(--mut); text-align: center; letter-spacing: .02em; padding-bottom: 4px; }
.s3-tbl .tr { height: 32px; border-top: 1px solid #f0f3f7; }
.s3-tbl .tr > span { font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3-tbl .tr i { justify-self: center; display: grid; place-items: center; height: 20px; border-radius: 6px; font-style: normal; font-size: 9.5px; font-weight: 700; }
.s3-tbl .tr i.ok { width: 20px; background: var(--okbg); color: var(--ok); }
.s3-tbl .tr i.ok svg { width: 11px; height: 11px; }
.s3-tbl .tr i.no { padding: 0 6px; background: var(--warnbg); color: var(--warn); }
.is-on .s3-tbl .tr i { animation: stg-pop .35s var(--spring) both; animation-delay: calc(var(--k) * 65ms + 450ms); }
.s3-stat { width: 128px; padding: 11px 12px; z-index: 1; }
.s3-stat b { display: block; font-size: 20px; letter-spacing: -.4px; margin-top: 2px; }
.s3-stat b em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--mut); }
.s3-stat .spark { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-top: 6px; }
.s3-stat .spark i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: #cfe6fb; transform-origin: bottom; }
.s3-stat .spark i:last-child { background: var(--p); }
.s3-debt .spark i:last-child { background: var(--warn); }
.is-on .s3-stat .spark i { animation: stg-grow .5s var(--out) both; animation-delay: 1.4s; }
.s3-inbox { left: 334px; top: 104px; animation-delay: 1s !important; }
.s3-debt { left: 334px; top: 222px; animation-delay: 1.2s !important; }
.s3-act { left: 40px; top: 330px; width: 404px; z-index: 2; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; animation-delay: 1.7s !important; }
.s3-act .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--warnbg); color: var(--warn); }
.s3-act .ic svg { width: 17px; height: 17px; }
.s3-act .btn { padding: 8px 12px; border-radius: 9px; background: var(--p); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 12px -6px rgba(0, 136, 232, .7); }
.is-on .s3-act .btn { animation: stg-press .5s 2.4s both; }
.s3-act .lnk { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 10px; border-radius: 8px; background: var(--soft); color: var(--pd); font-size: 11px; font-weight: 600; }
.s3-act .lnk svg { width: 13px; height: 13px; }
.is-on .s3-act .lnk { animation: stg-pop .45s 2.75s var(--spring) both; }
.m360-stg-toast { position: absolute; left: 50%; top: 466px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 14px 28px -12px rgba(4, 22, 48, .7); }
.m360-stg-toast svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: #2fbf7a; color: #fff; }
.is-on .m360-stg-toast { animation: stg-toast .5s 3.15s var(--spring) both; }

@keyframes stg-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes stg-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes stg-pop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.1); } }
@keyframes stg-fill { from { transform: scaleX(0); } }
@keyframes stg-out { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes stg-seg { 0% { transform: translateX(0); } 35% { transform: translateX(0); } }
@keyframes stg-tog { from { transform: translateX(0); } }
@keyframes stg-tog-bg { from { background: #cfd8e3; } }
@keyframes stg-lit { from { background: #f6f9fc; color: var(--ink); } }
@keyframes stg-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes stg-grow { from { transform: scaleY(.2); } }
@keyframes stg-press { 0%, 100% { transform: none; } 45% { transform: scale(.92); box-shadow: none; } }
@keyframes stg-toast { from { opacity: 0; transform: translate(-50%, 14px) scale(.95); } }
@keyframes stg-d1 { to { transform: translate(90px, 60px); } }
@keyframes stg-d2 { to { transform: translate(-70px, -50px); } }

@media (prefers-reduced-motion: reduce) {
  .m360-stg *, .m360-stg *::before, .m360-stg *::after { animation: none !important; transition: none !important; }
}
