* { box-sizing: border-box; }
body { margin: 0; background: #000; color: #f5f3ff; font-family: "Inter", system-ui, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.app { --accent: #8b5cf6; --bg: #0b0a10; --card: #16141f; max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff14; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent), #000); border: 2px solid #fff; }
.logo-text { font-weight: 900; letter-spacing: .18em; font-size: 20px; background: linear-gradient(90deg, #fff, #c4b5fd); -webkit-background-clip: text; color: transparent; }
.content { padding: 14px 14px 100px; }
.demo-note { margin: 10px 14px 0; padding: 10px 12px; border-radius: 12px; background: #8b5cf622; font-size: 14px; }
h1 { margin: 4px 0; font-size: 26px; } h2 { margin: 0; font-size: 20px; } h3 { margin: 0; }
.muted { color: #a5a1b8; } .small { font-size: 13px; } .err { color: #fca5a5; }
.center-text { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-tight { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .center { justify-content: center; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; text-align: left; min-width: 0; } .grow { flex: 1; min-width: 0; }
.col span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { background: var(--card); border: 1px solid #ffffff12; border-radius: 18px; padding: 14px; }
.plain { background: none; border: 0; padding: 0; text-align: left; }
.card.plain { background: var(--card); padding: 12px; width: 100%; }
.btn-p, .btn-o, .btn-danger { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; border: 0; }
.btn-p { background: var(--accent); color: #fff; } .btn-p:disabled { opacity: .5; }
.btn-o { background: transparent; border: 1px solid #ffffff33; } .btn-o.sel { border-color: var(--accent); background: #8b5cf633; } .btn-o:disabled { opacity: .35; }
.btn-danger { background: #3b0d16; color: #fda4af; }
.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.chip-btn { border: 1px solid var(--accent); background: transparent; color: #ddd6fe; border-radius: 999px; padding: 0 12px; min-height: 36px; font-weight: 700; }
.link { background: none; border: 0; color: #c4b5fd; text-decoration: underline; padding: 6px 0; min-height: 0; }
.link.light { color: #fff; }
.icon-btn { background: none; border: 0; font-size: 22px; min-width: 44px; min-height: 44px; }
.icon-btn.liked { color: #e879f9; } .icon-btn.sm { min-width: 32px; min-height: 32px; font-size: 14px; }
.input { width: 100%; min-height: 44px; font-size: 16px; padding: 0 14px; border-radius: 12px; border: 1px solid #ffffff22; background: #0006; color: #fff; }
.input.dark { background: #0008; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #c4b5fd; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.avatar { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; flex: none; overflow: hidden; border: 2px solid var(--bg); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px #fff3; }
.avatar.big { width: 90px; height: 90px; font-size: 34px; margin-top: -50px; border: 4px solid var(--bg); }
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; }
.story-item { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; padding: 4px; }
.post { padding: 0; overflow: hidden; margin-bottom: 16px; }
.post-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 12px; }
.post-actions { display: flex; align-items: center; gap: 2px; padding: 4px 6px; }
.caption { margin: 0 14px 14px; }
.media { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.ad { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; border-style: dashed; }
.plus-badge { background: linear-gradient(90deg, #7c3aed, #c026d3); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; margin-left: 4px; }
.person { display: flex; align-items: center; gap: 10px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #000e; border-top: 1px solid #ffffff1a; padding-bottom: max(8px, env(safe-area-inset-bottom)); z-index: 10; }
.tabbar button { flex: 1; background: none; border: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #8f8aa3; }
.tabbar .ic { font-size: 20px; } .tabbar .on { color: #fff; } .tabbar .on .ic { color: var(--accent); }
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid #ffffff14; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sticky-bottom { position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; margin-top: auto; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.banner { height: 110px; border-radius: 18px; background: linear-gradient(135deg, #2e1065, #000); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .tile { aspect-ratio: 1; border-radius: 6px; }
.comment { display: flex; gap: 6px; align-items: center; }
.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; background: var(--card); padding: 10px 14px; border-radius: 18px; max-width: 80%; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; }
.story-view { position: fixed; inset: 0; z-index: 30; background: #000; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; color: #fff; }
.bars { display: flex; gap: 4px; padding: 10px; } .bars span { flex: 1; height: 3px; border-radius: 3px; background: #fff4; } .bars .on { background: #fff; }
.story-top { display: flex; align-items: center; gap: 8px; padding: 0 10px; } .story-top button { margin-left: auto; }
.story-media { flex: 1; position: relative; overflow: hidden; margin: 8px; border-radius: 18px; }
.story-media .media { height: 100%; aspect-ratio: auto; }
.story-text, .preview-story .story-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 24px; font-weight: 800; text-align: center; text-shadow: 0 2px 12px #000a; width: 85%; }
.story-bottom, .story-stats { padding: 10px 10px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.reacts { display: flex; justify-content: space-around; } .reacts button { background: #ffffff14; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 20px; }
.preview-story { position: relative; aspect-ratio: 9/14; max-height: 46vh; border-radius: 18px; overflow: hidden; align-self: center; width: 100%; }
.preview-story .media { height: 100%; aspect-ratio: auto; }
.file-btn { display: grid; place-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ffffff33; } .swatch.on { border-color: #fff; } .swatch:disabled { opacity: .3; }
.plans { display: grid; gap: 12px; } .plan ul { padding-left: 18px; line-height: 1.8; } .plan.hot { border-color: var(--accent); background: linear-gradient(160deg, #2e1065, var(--card)); }
.price { font-size: 30px; font-weight: 900; margin: 6px 0; } .price small { font-size: 14px; color: #a5a1b8; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 50; font-size: 14px; max-width: 90%; text-align: center; }
