/* MIRRIM — prototype phone shell + component classes (shared) */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #0A0514; display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: "Manrope", system-ui, sans-serif; }
.page-bg { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 0%, #1a0a3a 0%, #0A0514 70%); z-index: 0; }
.page-label { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.35); font: 600 13px/1 "Manrope",system-ui; letter-spacing: .1em; text-transform: uppercase; z-index: 10; }
.phone-wrap { position: relative; z-index: 1; }
/* ── Phone shell ── */
.phone {
  width: 393px; height: 852px;
  background: #fff; border-radius: 54px; overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 12px #1a1a2e, 0 0 0 14px #2a2a4a, 0 60px 120px -20px rgba(0,0,0,.8);
}
/* Dynamic island */
.island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 126px; height: 36px; background: #000; border-radius: 20px; z-index: 100; }
/* Status bar */
.status { position: absolute; top: 0; left: 0; right: 0; height: 59px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 8px; font: 700 15px/1 "Manrope",system-ui; z-index: 90; pointer-events: none; }
.status-time { color: #fff; mix-blend-mode: normal; }
.status-icons { display: flex; gap: 6px; align-items: center; color: #fff; }
/* Home indicator */
.home-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; background: rgba(0,0,0,.2); border-radius: 3px; z-index: 90; }
/* ── Screen container ── */
.screen { position: absolute; inset: 0; overflow: hidden; }
.screen-inner { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen-inner::-webkit-scrollbar { display: none; }
/* ── Transitions ── */
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideLeft  { from { transform: translateX(-30%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideUp    { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeScale  { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.anim-right  { animation: slideRight .3s cubic-bezier(.4,0,.2,1) forwards; }
.anim-left   { animation: slideLeft  .28s ease forwards; }
.anim-up     { animation: slideUp    .35s cubic-bezier(.4,0,.2,1) forwards; }
.anim-fade   { animation: fadeScale  .25s ease forwards; }
/* ── Sheet overlay ── */
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 50; }
/* ── Nav bar ── */
.nav { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: relative; flex-shrink: 0; }
.nav-title { position: absolute; left: 0; right: 0; text-align: center; font: 700 17px/1 "Manrope",system-ui; pointer-events: none; }
.nav-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 50%; transition: background .12s; }
.nav-btn:hover { background: rgba(0,0,0,.06); }
/* ── Tab bar ── */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); border-top: 1px solid #F2F2F4; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; padding: 8px 0 28px; z-index: 80; }
.tab-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: #9A9A9A; font: 600 11px/1 "Manrope",system-ui; padding-top: 4px; transition: color .12s; }
.tab-item.active { color: var(--mirrim-purple-500); }
/* ── Btn ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 22px; border-radius: 999px; font: 700 15px/1 "Manrope",system-ui; border: 0; cursor: pointer; transition: transform .12s, filter .12s; }
.btn:active { transform: scale(.97); }
.btn-lime   { background: var(--mirrim-lime-500); color: #0A0A0A; box-shadow: 0 10px 24px -8px rgba(198,244,50,.5); }
.btn-black  { background: #0A0A0A; color: #fff; }
.btn-purple { background: var(--mirrim-purple-500); color: #fff; box-shadow: var(--mirrim-shadow-cta); }
.btn-ghost  { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-outline{ background: transparent; color: #0A0A0A; border: 1.5px solid #E5E5E5; }
.btn-block  { width: 100%; }
.btn-disabled { background: #C7C7C7; color: #fff; cursor: not-allowed; }
/* ── Chip ── */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; font: 600 12px/1 "Manrope",system-ui; background: #F2F2F4; color: #0A0A0A; border: 0; white-space: nowrap; }
.chip-active { background: #0A0A0A; color: #fff; }
.chip-lime   { background: var(--mirrim-lime-500); color: #0A0A0A; }
.chip-on-dark{ background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); }
.chip-purple { background: rgba(124,58,237,.12); color: var(--mirrim-purple-700); }
/* ── Field ── */
.field { background: #F2F2F4; border-radius: 16px; padding: 14px 16px 10px; border: 1.5px solid transparent; }
.field.error { border-color: #EF4444; background: #FFF1F1; }
.field-label { font: 500 12px/1 "Manrope",system-ui; color: #9A9A9A; display: block; margin-bottom: 4px; }
.field-input { width: 100%; border: 0; background: transparent; outline: none; font: 500 15px/1.2 "Manrope",system-ui; color: #0A0A0A; }
/* ── Toggle ── */
.toggle { width: 48px; height: 28px; border-radius: 999px; background: #D6D6DA; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; border: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .15s; }
.toggle.on { background: var(--mirrim-purple-400); }
.toggle.on::after { transform: translateX(20px); }
/* ── Poster card ── */
.poster-card { position: relative; border-radius: 22px; overflow: hidden; cursor: pointer; }
.poster-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 35%, transparent 42%, rgba(0,0,0,.88) 100%); }
/* ── Row ── */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #F2F2F4; border-radius: 16px; min-height: 60px; }
/* ── Special ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.5} }
@keyframes confettiDrop { from{transform:translateY(-20px) rotate(0deg);opacity:1} to{transform:translateY(900px) rotate(720deg);opacity:0} }
@keyframes countdownPop { 0%{transform:scale(.7);opacity:0} 50%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
@keyframes eqBar { 0%,100%{transform:scaleY(.35)} 50%{transform:scaleY(1)} }
@keyframes loadBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
