/* Simülasyon sahnesi — web tarayıcı çerçevesi + telefon çerçevesi */
html, body { margin: 0; height: 100%; }
body.sim { background: #DFE1E4; color: #111417; font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; overflow: hidden; display: flex; flex-direction: column; }
.sim-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid rgba(17, 20, 23, .08); flex: none; }
.sim-top .brand-t { font-family: 'Inter Tight', sans-serif; letter-spacing: -.01em; line-height: 1.15; }
.sim-top .brand-t b { font-size: 16px; display: block; }
.sim-top .brand-t span { font-size: 12px; color: #575C61; }
.sim-top .grow { flex: 1; }
.sbtn { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(17, 20, 23, .08); background: #fff; color: #111417; font: 500 13px 'Inter', sans-serif; box-shadow: 0 1px 2px rgba(17,20,23,.05); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.sbtn:hover { background: #F2F2F2; }
.sbtn.gold { background: #111417; color: #fff; border-color: #111417; }
.sbtn:focus-visible, .scn:focus-visible, .persona:focus-visible { outline: 2px solid #044169; outline-offset: 2px; }

.scen { flex: none; padding: 10px 20px 12px; border-bottom: 1px solid rgba(17, 20, 23, .08); display: flex; flex-direction: column; gap: 8px; }
.scen-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.scn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid rgba(17, 20, 23, .08); background: #fff; color: #4A4F54; font: 500 13px 'Inter', sans-serif; cursor: pointer; white-space: nowrap; }
.scn i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ECECEC; font-weight: 700; font-size: 12px; color: #111417; }
.scn:hover { color: #111417; background: #F6F6F6; }
.scn.on { color: #fff; border-color: #111417; background: #111417; }
.scn.on i { background: #C2A01E; color: #111417; }
.scen-info { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #33383D; min-height: 22px; }
.scen-info b { color: #111417; }
.scen-info .tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #111417; background: #C2A01E; border-radius: 6px; padding: 2px 7px; margin-top: 1px; }

.stage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding: 16px 20px 18px; }
.dev { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dev-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dev-bar .lab { font: 600 11px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #575C61; display: inline-flex; gap: 6px; align-items: center; }
.persona { height: 36px; border-radius: 12px; border: 1px solid rgba(17, 20, 23, .1); background: #fff; color: #111417; font: 500 13px 'Inter', sans-serif; padding: 0 34px 0 12px; max-width: 360px;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234A4F54' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.persona optgroup, .persona option { background: #fff; }
.role-pill { font-size: 12px; color: #6F590A; border: 0; background: #F5EDCC; border-radius: 999px; padding: 4px 10px; }

.browser { flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(17, 20, 23, .08); box-shadow: 0 30px 70px rgba(17, 20, 23, .18); display: flex; flex-direction: column; background: #ECECEC; }
.chrome { height: 40px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #F6F6F6; border-bottom: 1px solid rgba(17, 20, 23, .07); }
.chrome .dots { display: flex; gap: 7px; }
.chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: #CFCFCF; }
.chrome .dots i:nth-child(1) { background: #ef6a5f; } .chrome .dots i:nth-child(2) { background: #f3be4f; } .chrome .dots i:nth-child(3) { background: #5fc454; }
.chrome .url { flex: 1; max-width: 560px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; border: 1px solid rgba(17, 20, 23, .07); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #575C61; }
.screen { position: relative; flex: 1; min-height: 0; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.phone { position: relative; height: min(844px, calc(100vh - 230px)); aspect-ratio: 390 / 844; border-radius: 54px; padding: 11px; background: linear-gradient(145deg, #3a3f45, #15181b 40%, #2a2e33); box-shadow: 0 0 0 2px #0d0f11, 0 40px 80px rgba(17, 20, 23, .3), inset 0 0 0 1px rgba(255, 255, 255, .08); flex: none; }
.phone .screen { position: absolute; inset: 11px; border-radius: 44px; overflow: hidden; background: #ECECEC; }
.island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 31%; height: 32px; border-radius: 20px; background: #000; z-index: 60; }
.status { position: absolute; top: 11px; left: 11px; right: 11px; height: 54px; z-index: 55; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 36px; font: 600 15px 'Inter', sans-serif; color: #111417; pointer-events: none; border-radius: 44px 44px 0 0;
  background: linear-gradient(180deg, rgba(236, 236, 236, .96), rgba(236, 236, 236, 0)); }
.status .r { display: flex; gap: 6px; align-items: center; }
.status .bat { width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(17, 20, 23, .6); position: relative; padding: 1.5px; }
.status .bat i { display: block; height: 100%; width: 80%; background: #111417; border-radius: 2px; }
.homebar { position: absolute; bottom: 19px; left: 50%; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 5px; background: rgba(17, 20, 23, .7); z-index: 60; pointer-events: none; }
.sync { font-size: 12px; color: #575C61; display: inline-flex; gap: 6px; align-items: center; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: #3FB984; }
@keyframes sp { 70% { box-shadow: 0 0 0 7px rgba(63, 185, 132, 0); } }
.flash { animation: flash .6s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(224, 195, 82, .8); } 100% { box-shadow: 0 0 0 14px rgba(224, 195, 82, 0); } }

@media (max-width: 1180px) {
  body.sim { overflow: auto; display: block; height: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .browser { height: 760px; flex: none; }
  .phone { height: min(800px, calc(100vh - 60px)); }
  .sim-top { flex-wrap: wrap; }
  .sim-top .brand-t span { display: none; }
}
@media (max-width: 760px) {
  .sim-top .grow, .sync { display: none; }
  .sim-top { gap: 8px; padding: 10px 16px; }
  .scen, .stage { padding-left: 16px; padding-right: 16px; }
  .browser { height: 640px; }
  .phone { height: auto; width: min(390px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .sync i, .flash { animation: none; } }
