:root{
  --bg: #070A12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --accent: #7C5CFF;
  --accent2: #24D3EE;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --r: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(36,211,238,.14), transparent 55%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.app{
  min-height:100svh; /* mobilde doğru vh */
  display:flex;
  flex-direction:column;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: calc(env(safe-area-inset-top) + 12px) 14px 12px 14px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(to bottom, rgba(7,10,18,.92), rgba(7,10,18,.55));
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.logo{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(36,211,238,.75));
  box-shadow: 0 10px 30px rgba(124,92,255,.18);
}
.brandText{ min-width:0; }
.brandName{
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brandSub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cta{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(255,255,255,.95);
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(36,211,238,.22));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  font-weight:650;
  font-size:13px;
}

.stage{
  flex:1;
  display:flex;
  padding:14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
}

.frameWrap{
  width:100%;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.frame{
  width:100%;
  height: calc(100svh - 86px - 28px); 
  min-height: 560px;
  border:0;
  display:block;
  background:#0b1020;
}

.fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
}
.fallbackCard{
  width:min(520px, 100%);
  border-radius: 20px;
  padding:18px 16px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.fallbackCard h1{
  font-size:18px;
  margin:0 0 8px 0;
}
.fallbackCard p{
  margin:0 0 14px 0;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
}
.fallbackBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#0b0c12;
  font-weight:750;
  background: linear-gradient(135deg, #7C5CFF, #24D3EE);
}

@media (max-width: 520px){
  .stage{ padding:10px; padding-bottom: calc(env(safe-area-inset-bottom) + 10px); }
  .frame{ min-height: 520px; }
}
