/* DRS Phone — same tokens as the other DRS UIs (_shared/device.css) */
:root {
    --bezel: #0b0c11;
    --bezel-edge: #262833;
    --screen: #0d0f17;
    --window: #121420;
    --row: #181a29;
    --row-hover: #1f2235;
    --line: #242739;
    --white: #f3f4fa;
    --text: #d7d9e6;
    --muted: #868aa3;
    --accent: #8b8ff8;
    --accent-strong: #6d71f0;
    --accent-soft: rgba(139, 143, 248, 0.16);
    --danger: #ff6b66;
    --danger-soft: rgba(255, 107, 102, 0.14);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.14);
    --warning: #fbbf24;
    --zoom: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", "Segoe UI", sans-serif; }
body { height: 100vh; width: 100vw; overflow: hidden; background: transparent; color: var(--text); user-select: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--white); background: var(--row); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; outline: none; user-select: text; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: none; }
svg { width: 1em; height: 1em; fill: currentColor; }

/* ------------------------------------------------------------ frame */
#phone {
    position: fixed; right: 48px; bottom: 36px;
    transform-origin: bottom right; transform: scale(var(--zoom));
    animation: phone-in .35s cubic-bezier(.2, .9, .25, 1.05);
}
#phone.out { animation: phone-out .22s ease-in forwards; }
@keyframes phone-in { from { transform: translateY(110%) scale(var(--zoom)); } to { transform: translateY(0) scale(var(--zoom)); } }
@keyframes phone-out { to { transform: translateY(110%) scale(var(--zoom)); } }

.frame {
    width: 318px; height: 654px; padding: 11px; border-radius: 54px;
    background: linear-gradient(145deg, #1a1c24 0%, var(--bezel) 38%, var(--bezel) 70%, #16171e 100%);
    box-shadow: 0 0 0 1.5px var(--bezel-edge), 0 0 0 4px #07080b, 0 40px 90px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--screen); }
.wallpaper { position: absolute; inset: 0; background-size: cover; background-position: center; transition: filter .3s; }
.screen.in-app .wallpaper { filter: blur(18px) brightness(.35); }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 30; }

.w1 { background: radial-gradient(120% 80% at 20% 0%, #4a4fd6 0%, transparent 60%), radial-gradient(100% 70% at 100% 100%, #b04ad6 0%, transparent 55%), #0d0f17; }
.w2 { background: linear-gradient(160deg, #0f2027, #203a43 50%, #2c5364); }
.w3 { background: radial-gradient(90% 60% at 80% 10%, #ff8a5b 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, #d6336c 0%, transparent 60%), #1a0f1f; }
.w4 { background: linear-gradient(180deg, #0b0c11, #1c1f2e); }
.w5 { background: radial-gradient(100% 60% at 50% 0%, #22c55e 0%, transparent 60%), radial-gradient(80% 60% at 100% 100%, #0ea5e9 0%, transparent 60%), #06131a; }
.w6 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 45%, #7c3aed 100%); }

/* ------------------------------------------------------------ status bar */
.status { position: absolute; top: 0; left: 0; right: 0; height: 46px; padding: 14px 26px 0 30px; display: flex; justify-content: space-between; z-index: 25; font-size: 13.5px; font-weight: 700; color: var(--white); pointer-events: none; }
.status .icons { display: flex; gap: 5px; align-items: center; font-size: 15px; }

/* ------------------------------------------------------------ lock */
.lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 78px; z-index: 5; color: var(--white); }
.lock-time { font-size: 72px; font-weight: 700; letter-spacing: -2px; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.lock-date { margin-top: 6px; font-size: 15px; font-weight: 600; opacity: .85; }
.lock-notes { margin-top: 26px; width: 100%; padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.lock-hint { position: absolute; bottom: 34px; left: 0; right: 0; font-size: 13px; font-weight: 600; opacity: .8; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------ home */
.home { position: absolute; inset: 0; padding: 62px 18px 0; z-index: 5; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--white); position: relative; }
.app-icon .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 27px; color: #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s; }
.app-icon:active .ic { transform: scale(.9); }
.app-icon .badge { position: absolute; top: -4px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 26px; padding: 12px 8px; border-radius: 30px; background: rgba(255,255,255,.12); backdrop-filter: blur(20px); display: grid; grid-template-columns: repeat(4, 1fr); }
.dock .app-icon span { display: none; }

.c-phone { background: linear-gradient(160deg, #4ade80, #16a34a); }
.c-messages { background: linear-gradient(160deg, #6ee7a7, #10b981); }
.c-contacts { background: linear-gradient(160deg, #9ca3af, #4b5563); }
.c-camera { background: linear-gradient(160deg, #4b5563, #1f2937); }
.c-gallery { background: linear-gradient(160deg, #fcd34d, #f97316 55%, #ec4899); }
.c-bank { background: linear-gradient(160deg, #a5a8ff, var(--accent-strong)); }
.c-notes { background: linear-gradient(160deg, #fde68a, #f59e0b); }
.c-calculator { background: linear-gradient(160deg, #fb923c, #ea580c); }
.c-settings { background: linear-gradient(160deg, #94a3b8, #475569); }

/* ------------------------------------------------------------ app shell */
.app { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; padding-top: 48px; background: var(--screen); animation: app-in .22s cubic-bezier(.2, .9, .25, 1); }
@keyframes app-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.bar { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; min-height: 44px; }
.bar h1 { flex: 1; font-size: 24px; font-weight: 800; color: var(--white); letter-spacing: -.4px; }
.bar h2 { flex: 1; font-size: 16px; font-weight: 700; color: var(--white); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar .back { color: var(--accent); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 2px; min-width: 60px; }
.bar .act { color: var(--accent); font-size: 15px; font-weight: 600; min-width: 60px; text-align: right; }
.bar .act.icon { font-size: 22px; }
.body { flex: 1; overflow-y: auto; padding: 0 14px 40px; }
.body::-webkit-scrollbar { width: 0; }

.tabs { display: flex; gap: 4px; margin: 0 14px 10px; padding: 3px; border-radius: 12px; background: var(--row); }
.tabs button { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--row-hover); color: var(--white); }

.list { display: flex; flex-direction: column; border-radius: 16px; background: var(--window); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--row-hover); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-size: 14.5px; font-weight: 600; color: var(--white); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .s { font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }
.row .side { font-size: 12px; color: var(--muted); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row .dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.row.missed .t { color: var(--danger); }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #6b7280, #374151); }
.avatar.big { width: 84px; height: 84px; font-size: 32px; }
.section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 16px 4px 8px; }
.empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 40px 10px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 14.5px; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-strong); }
.btn.ghost { background: var(--row); color: var(--white); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.check { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.search { margin: 0 0 12px; }

/* switches and sliders (settings) */
.switch { width: 46px; height: 28px; border-radius: 14px; background: #3a3d52; position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(18px); }
input[type=range] { -webkit-appearance: none; padding: 0; height: 6px; border: 0; background: var(--line); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.walls button { aspect-ratio: 9 / 16; border-radius: 12px; border: 2px solid transparent; }
.walls button.on { border-color: var(--accent); }
.tones { display: flex; gap: 6px; padding: 0 14px 12px; }
.tones button { flex: 1; padding: 8px 0; border-radius: 10px; background: var(--row); font-size: 13px; font-weight: 600; }
.tones button.on { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ phone app: keypad */
.dial { text-align: center; font-size: 32px; font-weight: 600; color: var(--white); min-height: 40px; letter-spacing: 1px; margin: 0 0 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dial-name { text-align: center; font-size: 13px; color: var(--accent); min-height: 18px; margin-bottom: 8px; }
.keys { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px 20px; justify-content: center; }
.key { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); }
.key b { font-size: 26px; font-weight: 500; line-height: 1; }
.key small { font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); margin-top: 2px; min-height: 11px; }
.key:active { background: rgba(255,255,255,.25); }
.key-row { display: grid; grid-template-columns: repeat(3, 64px); gap: 20px; justify-content: center; margin-top: 10px; align-items: center; }
.key.dialbtn { background: var(--success); font-size: 30px; }
.key.del { background: none; font-size: 22px; color: var(--muted); }
.keypad .services { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.keypad .services button { padding: 6px 10px; border-radius: 10px; background: var(--row); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------ contact detail */
.profile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 18px; }
.profile .n { font-size: 22px; font-weight: 700; color: var(--white); }
.profile .num { font-size: 14px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; background: var(--window); color: var(--accent); font-size: 12px; font-weight: 600; }
.quick button svg { font-size: 20px; }

/* ------------------------------------------------------------ messages */
.thread { flex: 1; overflow-y: auto; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.thread::-webkit-scrollbar { width: 0; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 18px; font-size: 14px; line-height: 1.35; word-wrap: break-word; white-space: pre-wrap; user-select: text; }
.bubble.me { align-self: flex-end; background: var(--accent-strong); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--row-hover); color: var(--white); border-bottom-left-radius: 6px; }
.bubble img { display: block; max-width: 100%; border-radius: 12px; margin: 2px 0; cursor: zoom-in; }
.bubble .time { display: block; font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.stamp { text-align: center; font-size: 11px; color: var(--muted); margin: 10px 0 4px; }
.composer { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px 30px; border-top: 1px solid var(--line); background: var(--screen); }
.composer textarea { border-radius: 18px; padding: 8px 14px; max-height: 90px; font-size: 14px; }
.composer .round { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; }
.composer .send { background: var(--accent); color: #fff; }
.composer .attach { background: var(--row); color: var(--muted); }
.attached { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; color: var(--muted); }
.attached img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }

/* ------------------------------------------------------------ gallery */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.photos button { aspect-ratio: 1; background: var(--row) center / cover no-repeat; border-radius: 4px; }
.viewer { position: absolute; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; padding-top: 48px; }
.viewer .img { flex: 1; background: center / contain no-repeat; }
.viewer .tools { display: flex; gap: 8px; padding: 12px 14px 34px; }

/* ------------------------------------------------------------ bank */
.card { border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--accent-strong), #3b3fc2 60%, #23255e); box-shadow: 0 14px 30px -14px rgba(109, 113, 240, .7); margin-bottom: 18px; }
.card .lbl { font-size: 12px; opacity: .8; font-weight: 600; }
.card .amt { font-size: 30px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.card .who { margin-top: 18px; font-size: 13px; opacity: .85; font-weight: 600; }

/* ------------------------------------------------------------ notes */
.note-title { background: none; border: 0; font-size: 22px; font-weight: 800; padding: 4px 2px; }
.note-body { background: none; border: 0; flex: 1; font-size: 15px; line-height: 1.5; padding: 6px 2px; min-height: 380px; }

/* ------------------------------------------------------------ calculator */
.calc { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 36px; }
.calc .out { text-align: right; font-size: 56px; font-weight: 300; color: var(--white); padding: 0 6px 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calc .pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.calc .pad button { aspect-ratio: 1; border-radius: 50%; background: #2d2f3a; color: var(--white); font-size: 26px; }
.calc .pad button.fn { background: #a5a5ae; color: #111; font-size: 21px; }
.calc .pad button.op { background: #f59e0b; color: #fff; font-size: 30px; }
.calc .pad button.op.on { background: #fff; color: #f59e0b; }
.calc .pad button.zero { grid-column: span 2; aspect-ratio: auto; border-radius: 40px; text-align: left; padding-left: 26px; }

/* ------------------------------------------------------------ call */
.call { position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; padding: 96px 20px 60px; color: var(--white); background: linear-gradient(180deg, rgba(20,22,34,.92), rgba(8,9,14,.98)); backdrop-filter: blur(24px); animation: app-in .25s; }
.call .who { font-size: 28px; font-weight: 700; text-align: center; margin-top: 16px; }
.call .what { font-size: 15px; color: var(--muted); margin-top: 6px; }
.call .actions { margin-top: auto; display: flex; gap: 60px; }
.call .actions button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.call .actions .round { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; }
.call .accept .round { background: var(--success); animation: ring 1.2s infinite; }
.call .decline .round { background: var(--danger); }
.call .decline .round svg { transform: rotate(135deg); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }

/* ------------------------------------------------------------ banners and toast */
.banner, .peek-card { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 20px; background: rgba(30, 32, 46, .92); backdrop-filter: blur(20px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); color: var(--white); text-align: left; }
.banner { position: absolute; top: 44px; left: 8px; right: 8px; z-index: 45; animation: drop .3s cubic-bezier(.2,.9,.25,1.1); cursor: pointer; }
.banner .ic, .peek-card .ic, .lock-notes .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.banner .t, .peek-card .t { font-size: 13px; font-weight: 700; }
.banner .s, .peek-card .s { font-size: 12.5px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.peek { position: fixed; right: 48px; bottom: 36px; width: 300px; display: flex; flex-direction: column; gap: 8px; }
.peek-card { animation: rise .3s cubic-bezier(.2,.9,.25,1.1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.lock-notes .peek-card { background: rgba(30, 32, 46, .7); }
.toast { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 9px 16px; border-radius: 14px; background: rgba(40, 42, 58, .96); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.toast.bad { color: var(--danger); }

.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.75); z-index: 60; }
.homebar::before { content: ''; position: absolute; inset: -10px -10px; }

/* ------------------------------------------------------------ social (Birdy, InstaPic) */
.c-birdy { background: linear-gradient(160deg, #38bdf8, #0284c7); }
.c-instapic { background: radial-gradient(circle at 30% 110%, #fdcb52 0%, #fd5949 40%, #d6249f 65%, #285aeb 100%); }
.app.birdy { --brand: #1d9bf0; }
.app.instapic { --brand: #e1306c; }
.brand { font-size: 22px; font-weight: 800; color: var(--white); flex: 1; letter-spacing: -.4px; }
.me-btn { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.me-btn .avatar { width: 32px; height: 32px; font-size: 12px; }
.avatar.img { background-size: cover !important; background-position: center !important; }
.fab { position: absolute; right: 18px; bottom: 34px; width: 52px; height: 52px; border-radius: 50%; background: var(--brand, var(--accent)); color: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); z-index: 12; }

.post { display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.post .main { flex: 1; min-width: 0; }
.post .head { display: flex; gap: 5px; align-items: baseline; font-size: 13.5px; overflow: hidden; white-space: nowrap; }
.post .head b { color: var(--white); overflow: hidden; text-overflow: ellipsis; }
.post .head span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.post .text { font-size: 14px; color: var(--text); line-height: 1.4; margin-top: 2px; white-space: pre-wrap; word-wrap: break-word; user-select: text; }
.post .pic { margin-top: 8px; width: 100%; border-radius: 14px; display: block; border: 1px solid var(--line); }
.post.big .text { font-size: 16.5px; }
.post-actions { display: flex; gap: 22px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.post-actions button { display: flex; align-items: center; gap: 5px; }
.post-actions svg { font-size: 16px; }
.post-actions .liked { color: #f91880; }
.post-actions .del { margin-left: auto; }

.ig { margin: 0 -14px 14px; }
.ig-head { display: flex; align-items: center; gap: 9px; padding: 6px 14px 8px; font-size: 13.5px; font-weight: 700; color: var(--white); }
.ig-head .avatar { width: 30px; height: 30px; font-size: 11px; }
.ig-photo { width: 100%; aspect-ratio: 1; background: var(--row) center / cover no-repeat; }
.ig-actions { display: flex; gap: 14px; padding: 9px 14px 4px; font-size: 24px; color: var(--white); }
.ig-actions .liked { color: #ff3040; }
.ig-likes { padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--white); }
.ig-cap { padding: 3px 14px 0; font-size: 13.5px; color: var(--text); line-height: 1.4; user-select: text; }
.ig-cap b { color: var(--white); margin-right: 5px; }
.ig-more { padding: 4px 14px 0; font-size: 12.5px; color: var(--muted); }
.ig-time { padding: 4px 14px 0; font-size: 11px; color: var(--muted); }

.sp-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 16px; text-align: center; }
.sp-profile .n { font-size: 19px; font-weight: 800; color: var(--white); }
.sp-profile .u { font-size: 13px; color: var(--muted); }
.sp-profile .bio { font-size: 13.5px; color: var(--text); max-width: 240px; line-height: 1.4; }
.sp-stats { display: flex; gap: 26px; margin: 6px 0 4px; }
.sp-stats div { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; color: var(--muted); }
.sp-stats b { font-size: 17px; color: var(--white); }
.btn.brand-btn { background: var(--brand, var(--accent)); }
.compose-box { display: flex; gap: 10px; }
.compose-box textarea { flex: 1; background: none; border: 0; padding: 6px 0; font-size: 16px; min-height: 120px; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.counter.over { color: var(--danger); }
.pick-photo { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--row) center / cover no-repeat; margin-bottom: 12px; }
.reply-bar { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px 30px; border-top: 1px solid var(--line); background: var(--screen); }
.reply-bar input { border-radius: 18px; padding: 8px 14px; font-size: 14px; }
.reply-bar .round { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; background: var(--brand, var(--accent)); color: #fff; }
.split { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.post > button:first-child { align-self: flex-start; }

/* ------------------------------------------------------------ music */
.c-music { background: linear-gradient(160deg, #fb7185, #e11d48); }
.app.music { --brand: #fb7185; }
.mu-now { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 8px; }
.mu-now.idle { opacity: .7; padding-bottom: 4px; }
.mu-cover { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background: var(--row) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.mu-cover.big { width: 190px; height: 190px; border-radius: 18px; font-size: 64px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); margin-bottom: 8px; }
.mu-cover.empty { background: linear-gradient(160deg, #2a2d40, #171926); }
.mu-title { font-size: 16px; font-weight: 700; color: var(--white); text-align: center; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mu-mode { font-size: 12px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.mu-bar { width: 100%; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.mu-bar div { height: 100%; width: 0; background: var(--white); transition: width 1s linear; }
.mu-times { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mu-ctrl { display: flex; align-items: center; gap: 30px; margin: 4px 0; font-size: 24px; color: var(--muted); }
.mu-ctrl .on { color: var(--brand); }
.mu-ctrl .big { width: 60px; height: 60px; border-radius: 50%; background: var(--white); color: #111; display: grid; place-items: center; font-size: 30px; }
.mu-vol { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 8px; }
.mu-modes { display: flex; gap: 6px; margin: 10px 0; }
.mu-modes button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0; border-radius: 12px; background: var(--row); font-size: 13px; font-weight: 600; color: var(--muted); }
.mu-modes button.on { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------ spotify */
.c-spotify { background: linear-gradient(160deg, #1ed760, #128c3e); }
.app.spotify { --brand: #1ed760; }
.sp-now { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 8px; }
.sp-now.idle { opacity: .75; }
.sp-now .mu-cover.big.empty { color: #1ed760; }
.btn.sp-green { background: #1ed760; color: #04120a; }
.btn.sp-green:hover { background: #1fdf64; }

/* ------------------------------------------------------------ games */
.c-games { background: linear-gradient(160deg, #f472b6, #8b5cf6); }
.gm-list { display: flex; flex-direction: column; gap: 10px; }
.gm-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--window); text-align: left; }
.gm-card .main { flex: 1; min-width: 0; }
.gm-card .t { font-size: 15px; font-weight: 700; color: var(--white); }
.gm-card .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gm-card .act { color: var(--warning); }
.gm-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.gm-ic.big { width: 72px; height: 72px; border-radius: 20px; font-size: 36px; }
.gm-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--row-hover); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--white); }
.gm-play { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 12px 30px; min-height: 0; }
.gm-score { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.gm-score small { font-size: 13px; color: var(--muted); font-weight: 600; }
.gm-stage { position: relative; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.gm-stage canvas { display: block; touch-action: none; cursor: pointer; }
.gm-over { position: absolute; inset: 0; background: rgba(8, 9, 14, .78); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; }
.gm-over .t { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.gm-over .n { font-size: 48px; font-weight: 800; color: var(--white); }
.gm-over .s { font-size: 13px; color: var(--warning); min-height: 18px; margin-bottom: 10px; }
.gm-pad { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.gm-pad .gm-col { display: flex; flex-direction: column; gap: 8px; }
.gm-pad button { width: 54px; height: 44px; border-radius: 12px; background: var(--row); color: var(--white); font-size: 18px; }
.gm-pad button:active { background: var(--row-hover); }
.gm-pad button.wide { width: 60px; height: 96px; }
.gm-pad.row { gap: 5px; flex-wrap: nowrap; }
.gm-pad.row button { width: 44px; height: 46px; }

/* ------------------------------------------------------------ mail, pages, marketplace */
.c-mail { background: linear-gradient(160deg, #60a5fa, #1d4ed8); }
.c-pages { background: linear-gradient(160deg, #fde047, #ca8a04); }
.c-market { background: linear-gradient(160deg, #2dd4bf, #0f766e); }
.row.unread .t { font-weight: 800; }
.mail-addr { display: flex; align-items: center; gap: 6px; }
.mail-addr span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mail-subject { font-size: 20px; font-weight: 800; color: var(--white); margin: 4px 0 6px; }
.mail-body { font-size: 14.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-wrap: break-word; user-select: text; padding: 8px 0; }
.pg-list, .mk-grid { display: flex; flex-direction: column; gap: 10px; }
.pg-card { padding: 14px; border-radius: 16px; background: var(--window); border-left: 4px solid #eab308; }
.pg-card .t { font-size: 15.5px; font-weight: 800; color: var(--white); }
.pg-card .s { font-size: 13.5px; color: var(--text); margin-top: 4px; line-height: 1.4; white-space: pre-wrap; }
.pg-by { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.mk-card { border-radius: 16px; background: var(--window); overflow: hidden; }
.mk-photo { width: 100%; aspect-ratio: 16 / 10; background: var(--row) center / cover no-repeat; cursor: zoom-in; }
.mk-info { padding: 12px 14px; }
.mk-info .t { font-size: 15px; font-weight: 700; color: var(--white); }
.mk-info .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mk-price { font-size: 18px; font-weight: 800; color: #2dd4bf; }

/* ------------------------------------------------------------ spark */
.c-spark { background: linear-gradient(160deg, #ff7a8a, #e11d48); }
.app.spark { --brand: #ff4f6d; }
.sk-wrap { flex: 1; display: flex; flex-direction: column; padding: 0 14px 34px; min-height: 0; }
.sk-card { flex: 1; border-radius: 22px; background: var(--row) center / cover no-repeat; position: relative; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); transition: transform .26s ease-in, opacity .26s; }
.sk-card.go-left { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
.sk-card.go-right { transform: translateX(130%) rotate(18deg); opacity: 0; }
.sk-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.sk-info .n { font-size: 24px; font-weight: 800; }
.sk-info .b { font-size: 13.5px; opacity: .9; margin-top: 4px; }
.sk-actions { display: flex; justify-content: center; gap: 34px; margin-top: 14px; }
.sk-actions button { width: 60px; height: 60px; border-radius: 50%; font-size: 26px; background: var(--window); box-shadow: 0 8px 20px -8px rgba(0,0,0,.8); }
.sk-actions .no { color: #9ca3af; }
.sk-actions .yes { color: #ff4f6d; }

/* ------------------------------------------------------------ darkchat */
.c-darkchat { background: linear-gradient(160deg, #3f3f46, #09090b); color: #a3e635 !important; }
.app.darkchat { background: #050505; --brand: #65a30d; }
.dk-join { display: flex; gap: 8px; margin-bottom: 14px; }
.dk-join .btn { width: auto; padding: 0 16px; background: #65a30d; }
.bubble.dk.me { background: #3f6212; }
.bubble.dk b { display: block; font-size: 11px; color: #a3e635; margin-bottom: 2px; }

/* ------------------------------------------------------------ trendy */
.c-trendy { background: linear-gradient(160deg, #111, #000); box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55 !important; }
.app.trendy { padding-top: 0; background: #000; --brand: #fe2c55; }
.tr-top { position: absolute; top: 44px; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 0 16px; color: #fff; font-weight: 800; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tr-top .me-btn { position: absolute; right: 16px; }
.tr-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; }
.tr-feed::-webkit-scrollbar { width: 0; }
.tr-item { height: 100%; scroll-snap-align: start; position: relative; background: #111 center / cover no-repeat; }
.tr-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); pointer-events: none; }
.tr-side { position: absolute; right: 10px; bottom: 110px; z-index: 2; display: flex; flex-direction: column; gap: 18px; align-items: center; color: #fff; }
.tr-side button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 28px; }
.tr-side button span { font-size: 11px; font-weight: 700; }
.tr-side .liked { color: #fe2c55; }
.tr-cap { position: absolute; left: 14px; right: 70px; bottom: 44px; z-index: 2; color: #fff; font-size: 13.5px; }
.tr-cap b { font-size: 14.5px; }
.tr-cap small { display: block; opacity: .7; font-size: 11px; margin-top: 4px; }

/* ------------------------------------------------------------ garage, crypto, clock, maps, services, weather */
.c-garage { background: linear-gradient(160deg, #94a3b8, #334155); }
.c-crypto { background: linear-gradient(160deg, #fbbf24, #b45309); }
.c-clock { background: linear-gradient(160deg, #27272a, #000); }
.c-maps { background: linear-gradient(160deg, #86efac 0%, #60a5fa 60%, #2563eb 100%); }
.c-services { background: linear-gradient(160deg, #f87171, #b91c1c); }
.c-weather { background: linear-gradient(160deg, #7dd3fc, #2563eb); }
.gr-card { padding: 14px; border-radius: 16px; background: var(--window); margin-bottom: 10px; }
.gr-head { display: flex; align-items: center; gap: 10px; }
.gr-head .main { flex: 1; min-width: 0; }
.gr-head .t { font-size: 15px; font-weight: 700; color: var(--white); }
.gr-head .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gr-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--row-hover); display: grid; place-items: center; font-size: 20px; color: var(--white); flex-shrink: 0; }
.gr-state { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.plate { font-family: ui-monospace, Consolas, monospace; background: #f5f5f4; color: #1e3a8a; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 11px; }
.gr-meter { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.gr-meter span { width: 60px; }
.gr-meter div { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gr-meter i { display: block; height: 100%; background: var(--accent); }
.cx-spark { width: 60px; height: 26px; flex-shrink: 0; }
.cx-price { font-size: 34px; font-weight: 800; color: var(--white); letter-spacing: -.5px; }
.cx-price small { font-size: 16px; color: var(--muted); }
.cx-change { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.cx-chart { height: 110px; margin-bottom: 14px; }
.cx-chart .cx-spark { width: 100%; height: 100%; }
.ck-big { font-size: 64px; font-weight: 300; color: var(--white); text-align: center; margin: 30px 0 4px; letter-spacing: -1px; }
.ck-big.mono { font-variant-numeric: tabular-nums; font-size: 54px; }
.ck-sub { text-align: center; color: var(--muted); font-size: 13px; }
.ck-btns { display: flex; gap: 10px; margin: 24px 0 16px; }
.ck-pick { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 0; color: var(--muted); }
.ck-pick input { width: 80px; text-align: center; font-size: 28px; padding: 8px; }
.mono { font-variant-numeric: tabular-nums; }
.mp-here { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--window); margin-bottom: 10px; }
.mp-here .main { flex: 1; min-width: 0; }
.mp-here .t { font-size: 14.5px; font-weight: 700; color: var(--white); }
.mp-here .s { font-size: 12px; color: var(--muted); }
.loc-bubble { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 700; color: inherit; text-align: left; }
.loc-bubble small { font-weight: 500; opacity: .8; font-size: 11.5px; }
.app.weather { padding-top: 0; }
.wx { position: absolute; inset: 0; padding-top: 48px; background: linear-gradient(180deg, #3b82f6, #60a5fa 55%, #93c5fd); color: #fff; display: flex; flex-direction: column; }
.wx.night { background: linear-gradient(180deg, #0f172a, #1e3a8a 70%, #312e81); }
.wx-now { text-align: center; margin-top: 20px; }
.wx-zone { font-size: 22px; font-weight: 700; }
.wx-temp { font-size: 86px; font-weight: 200; line-height: 1; margin: 6px 0; }
.wx-desc { font-size: 16px; font-weight: 600; }
.wx-sub { font-size: 13px; opacity: .8; margin-top: 4px; }
.wx-hours { display: flex; justify-content: space-between; margin: 36px 14px 0; padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); }
.wx-hours div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.wx-hours b { font-size: 22px; }
.wx-next { margin: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.15); font-size: 13.5px; font-weight: 600; }

/* home pages */
.grid { display: block; }
.pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; }
.pages::-webkit-scrollbar { height: 0; }
.page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; align-content: start; padding: 0 18px; }
.dots { display: flex; justify-content: center; gap: 7px; position: absolute; left: 0; right: 0; bottom: 118px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); padding: 0; }
.dots button.on { background: #fff; }
.page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-icon { min-width: 0; }
.app-icon span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
