/* SimBridge landing page › Online demo: an iPhone running SimBridge in the browser (demo.js).
   The phone screen is always dark, like SimBridge. No web fonts, no CDNs. */

/* ---------- Section ---------- */
.demo { position: relative; overflow: hidden; overflow: clip; background: #000; color: #f5f5f7; isolation: isolate; }
.demo-glow {
    position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 50% at 78% 42%, rgba(48, 209, 88, .30), transparent 70%),
        radial-gradient(35% 45% at 18% 72%, rgba(10, 132, 255, .22), transparent 70%),
        radial-gradient(30% 30% at 55% 0%, rgba(104, 239, 139, .14), transparent 70%);
    filter: blur(10px);
}
.demo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
    mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
.demo .kicker { color: #30d158; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.demo-copy h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.035em; color: #fff; }
.demo-copy .grad {
    background: linear-gradient(105deg, #68ef8b, #30d158 40%, #0a84ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-lead { margin-top: 18px; font-size: 18px; color: #a1a1a6; max-width: 520px; }
.demo-try { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.try {
    display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
    padding: 14px 15px; border-radius: 16px; font: inherit; color: #fff;
    background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.try:hover { background: rgba(255, 255, 255, .09); border-color: rgba(48, 209, 88, .55); transform: translateY(-2px); }
.try:active { transform: translateY(0) scale(.98); }
.try b { display: block; font-size: 15px; font-weight: 650; }
.try small { display: block; font-size: 13px; color: #98989d; margin-top: 1px; }
.try-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.try-ico svg { width: 21px; height: 21px; fill: #fff; stroke: none; }
.try-ico.call { background: linear-gradient(180deg, #68ef8b, #00c94b); }
.try-ico.msg { background: linear-gradient(180deg, #5ac8fa, #0a84ff); }
.try-ico.ussd { background: linear-gradient(180deg, #ffcc00, #ff9500); }
.try-ico.gw { background: linear-gradient(180deg, #8e8e93, #48484a); }
.try-ico.gw svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.try-ico.gw svg circle { fill: #fff; stroke: none; }
.demo-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.demo-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px; cursor: pointer;
    background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #30d158;
}
.demo-link:hover { color: #fff; }
.demo-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-link[aria-pressed="false"] { color: #8e8e93; }
.demo-note { font-size: 13px; color: #6e6e73; }
.demo-grid > * { min-width: 0; }
.demo-stage { position: relative; display: flex; justify-content: center; min-width: 0; }
.demo-scaler { flex: none; width: 384px; height: 800px; transform-origin: top center; }
/* One column: heading, then the phone, then the "try" buttons. */
@media (max-width: 980px) {
    .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .demo-copy { display: contents; }
    .demo-copy > * { text-align: center; }
    .demo-copy .kicker { justify-self: center; }
    .demo-stage { order: 1; margin-top: 36px; }
    .demo-try { order: 2; margin-left: auto; margin-right: auto; width: 100%; }
    .demo-foot { order: 3; justify-content: center; }
    .demo-lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) { .demo-try { grid-template-columns: 1fr; } }

/* ---------- iPhone ---------- */
.demo-iphone {
    position: relative; width: 384px; height: 800px; border-radius: 64px; padding: 12px;
    background: linear-gradient(145deg, #3a3b45, #15161c 40%, #2b2c35 70%, #0e0f13);
    box-shadow: 0 0 0 1.5px #4b4c58 inset, 0 0 0 4px #0b0c10 inset, 0 60px 120px -40px rgba(48, 209, 88, .35),
        0 30px 60px -30px rgba(0, 0, 0, .9);
}
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2b33, #4a4b56); }
.btn-side.b1 { left: -3px; top: 132px; height: 30px; }
.btn-side.b2 { left: -3px; top: 186px; height: 58px; }
.btn-side.b3 { left: -3px; top: 256px; height: 58px; }
.btn-side.b4 { right: -3px; top: 210px; height: 92px; }
.demo-screen {
    position: relative; width: 360px; height: 776px; border-radius: 53px; overflow: hidden; overflow: clip;
    background: #000; color: #fff; isolation: isolate; user-select: none; -webkit-user-select: none;
    font: 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -.01em; -webkit-tap-highlight-color: transparent;
}
.demo-noscript { padding: 300px 30px 0; text-align: center; color: #aaa; }


/* ---------- SimBridge UI (everything below lives inside .demo-screen) ----------
   Matches SimBridge 1.0 on iOS 27 in dark mode, at 360/402 of the real point sizes. */
.ds {
    --card: #1c1c1e; --sep: rgba(84, 84, 88, .55); --sec: rgba(235, 235, 245, .6); --ter: rgba(235, 235, 245, .3);
    --blue: #0a84ff; --tabblue: #3d9bff; --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --indigo: #5e5ce6; --gray: #8e8e93;
    --glass: rgba(44, 44, 46, .82); --glass-line: rgba(255, 255, 255, .09);
    --avatar: linear-gradient(180deg, #6f6899, #463f69);
    position: absolute; inset: 0; background: #000;
}
.ds * { box-sizing: border-box; }
:where(.ds) button, :where(.ds) input { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; letter-spacing: inherit; }
:where(.ds) button { cursor: pointer; text-align: inherit; }
.ds button:disabled { cursor: default; }
.ds svg { display: inline-block; flex: none; }
.ds .ic { width: 22px; height: 22px; fill: currentColor; }
.ds .ic.s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Status bar + Dynamic Island */
.ds-status { position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 60; display: flex; align-items: center;
    justify-content: space-between; padding: 6px 34px 0 50px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; pointer-events: none; }
.ds-status .right { display: flex; align-items: center; gap: 6px; }
.ds-status .sig { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.ds-status .sig i { width: 3px; background: #fff; border-radius: 1px; }
.ds-status .sig i:nth-child(1) { height: 4px; } .ds-status .sig i:nth-child(2) { height: 6px; }
.ds-status .sig i:nth-child(3) { height: 8.5px; } .ds-status .sig i:nth-child(4) { height: 11px; }
.ds-status .batt { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1.3px solid rgba(255, 255, 255, .45); padding: 1.3px; }
.ds-status .batt::after { content: ""; position: absolute; right: -3.5px; top: 3.5px; width: 1.6px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .45); }
.ds-status .batt i { display: block; height: 100%; width: 86%; border-radius: 2px; background: #fff; }
.ds-island { position: absolute; z-index: 70; top: 11px; left: 50%; width: 112px; height: 33px; margin-left: -56px; border-radius: 20px; background: #000;
    display: flex; align-items: center; justify-content: space-between; padding: 0 11px; transition: width .35s cubic-bezier(.3, 1.3, .5, 1), margin .35s cubic-bezier(.3, 1.3, .5, 1); }
.ds-island > * { opacity: 0; transition: opacity .2s; }
.ds-island.live { width: 146px; margin-left: -73px; cursor: pointer; }
.ds-island.live > * { opacity: 1; transition-delay: .15s; }
.ds-island .pill { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-island .pill .ic { width: 15px; height: 15px; }
.ds-island .iwave { display: flex; gap: 2px; align-items: center; height: 14px; }
.ds-island .iwave i { width: 2.5px; border-radius: 2px; background: var(--green); animation: ds-wave 1s ease-in-out infinite; }
.ds-island .iwave i:nth-child(2) { animation-delay: .15s; } .ds-island .iwave i:nth-child(3) { animation-delay: .3s; } .ds-island .iwave i:nth-child(4) { animation-delay: .45s; }
@keyframes ds-wave { 0%, 100% { height: 4px; } 50% { height: 13px; } }
.ds-home { position: absolute; bottom: 7px; left: 50%; width: 124px; height: 4.5px; margin-left: -62px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 90; pointer-events: none; }

/* Scroll edge: content fades out under the status bar, as on iOS */
.ds-topfade { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 62px; pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, .92) 40%, rgba(0, 0, 0, 0)); }
.ds.purple .ds-topfade { background: linear-gradient(rgba(117, 105, 159, .95) 40%, rgba(117, 105, 159, 0)); }
.ds.nofade .ds-topfade { display: none; }
/* Screens */
.ds-main { position: absolute; inset: 0; }
.ds-view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 52px 0 120px; }
.ds-view::-webkit-scrollbar { display: none; }
.ds-view.push { animation: ds-push .34s cubic-bezier(.2, .9, .3, 1); }
.ds-view.pop { animation: ds-pop .3s cubic-bezier(.2, .9, .3, 1); }
.ds-view.fade { animation: ds-fade .2s ease; }
@keyframes ds-push { from { transform: translateX(60%); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes ds-pop { from { transform: translateX(-30%); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }

/* Navigation bar: glass buttons, centred title */
.ds-nav { position: sticky; top: 0; z-index: 5; height: 52px; margin: 0 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.ds-nav h1 { font-size: 15.5px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.ds-nav .r { justify-self: end; display: flex; gap: 8px; }
.glass { position: relative; height: 40px; min-width: 40px; border-radius: 20px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--glass); box-shadow: inset 0 0 0 .8px var(--glass-line), 0 4px 14px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); font-size: 15.5px; font-weight: 500; transition: transform .15s; }
.glass:active { transform: scale(.92); }
.glass.round { padding: 0; width: 40px; }
.glass .ic { width: 19px; height: 19px; }
.glass .dbadge { position: absolute; top: -5px; right: -5px; }
.dbadge { min-width: 19px; height: 19px; padding: 0 5.5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* Tab bar: floating glass capsule */
.ds-tabs { position: absolute; z-index: 30; left: 20px; right: 20px; bottom: 21px; height: 62px; border-radius: 31px; padding: 4px; display: flex;
    background: rgba(32, 32, 34, .78); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .12), 0 8px 30px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7); }
.ds-tabs button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 27px; font-size: 9.8px; font-weight: 500; color: #fff; text-align: center; transition: background .2s; }
.ds-tabs button .ic { width: 23px; height: 23px; }
.ds-tabs button.on { background: rgba(0, 0, 0, .5); color: var(--tabblue); }
.ds-tabs .dbadge { position: absolute; top: 2px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; font-size: 11.5px; }

/* Floating search capsule + round button (Contacts, Messages) */
.ds-search { position: absolute; z-index: 25; left: 16px; right: 16px; bottom: 96px; display: flex; gap: 12px; }
.ds-search label { flex: 1; height: 47px; border-radius: 24px; display: flex; align-items: center; gap: 9px; padding: 0 18px;
    background: var(--glass); box-shadow: inset 0 0 0 .8px var(--glass-line), 0 6px 18px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--sec); }
.ds-search label .ic { width: 19px; height: 19px; }
.ds-search input { flex: 1; min-width: 0; outline: 0; font-size: 16.5px; color: #fff; -webkit-appearance: none; appearance: none; }
.ds-search input::placeholder { color: var(--sec); }
.ds-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ds-search .glass { width: 47px; height: 47px; border-radius: 24px; }
.ds-search .glass .ic { width: 22px; height: 22px; }

/* Avatars and SIM badges */
.av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--avatar); display: grid; place-items: center;
    font-size: 17px; font-weight: 600; color: #fff; letter-spacing: 0; }
.av svg { width: 52%; height: 52%; fill: #fff; }
.simb { display: inline-grid; place-items: center; width: 15px; height: 16px; border-radius: 4px; background: var(--blue); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1; vertical-align: -2px; flex: none; }
.simb.s2 { background: var(--orange); }
.ds-empty { text-align: center; color: var(--sec); padding: 70px 30px; font-size: 15px; }

/* Calls */
.favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 12px 14px 0; }
.fav { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform .15s; }
.fav:active { transform: scale(.95); }
.fav .tile { width: 100%; aspect-ratio: .66; border-radius: 26px; background: var(--avatar); display: grid; place-items: center; font-size: 30px; font-weight: 600; }
.fav span:last-child { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sec); }
.fav span:last-child .ic { width: 12px; height: 12px; }
.ds-h2 { font-size: 21px; font-weight: 700; padding: 30px 20px 6px; letter-spacing: -.02em; }
.row { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; padding: 0 14px; min-height: 74px; cursor: pointer; }
.row:active { background: rgba(255, 255, 255, .06); }
.row .mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; align-self: stretch; box-shadow: inset 0 -.6px 0 var(--sep); padding-right: 0; }
.row .t { flex: 1; min-width: 0; }
.row .name { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .name.red { color: var(--red); }
.row .sub { display: flex; align-items: center; gap: 5px; font-size: 14.5px; color: var(--sec); margin-top: 1px; }
.row .sub .arr { width: 13px; height: 13px; }
.row .when { font-size: 14.5px; color: var(--sec); white-space: nowrap; }
.info { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; color: var(--blue);
    font: italic 700 19px/1 Georgia, "Times New Roman", serif; }
.info:active { background: #2c2c2e; }

/* Contacts */
.letter { font-size: 14px; color: var(--sec); padding: 16px 20px 8px; margin: 0 18px 0 0; box-shadow: inset 0 -.6px 0 var(--sep); padding-left: 22px; }
.crow { width: 100%; display: flex; align-items: center; gap: 11px; padding: 6px 14px 0; cursor: pointer; }
.crow .av { margin-bottom: 6px; }
.crow .nm { flex: 1; align-self: stretch; display: flex; align-items: center; font-size: 15.5px; font-weight: 600; box-shadow: inset 0 -.6px 0 var(--sep); padding-bottom: 6px; }
.crow:last-of-type .nm { box-shadow: none; }
.crow:active { background: rgba(255, 255, 255, .06); }
.az { position: absolute; z-index: 6; right: 3px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center;
    font-size: 10.5px; font-weight: 600; color: var(--blue); line-height: 1.45; }

/* Contact / call details: the purple page */
.ds-view.purple { background: linear-gradient(180deg, #75699f 0, #554a80 30%, #2f2849 62%, #1c182d 100%) fixed; background-attachment: local; }
.purple .glass { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .22); }
.ph { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 20px 0; }
.ph .big { width: 184px; height: 184px; border-radius: 50%; display: grid; place-items: center; font-size: 104px; font-weight: 700; letter-spacing: -.03em;
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.ph .big svg { width: 50%; height: 50%; fill: #ececf1; }
.ph h2 { margin: 26px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ph p { margin: 8px 0 0; font-size: 15px; color: rgba(235, 235, 245, .62); }
.simpicker { margin-top: 18px; height: 40px; padding: 0 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .2); font-size: 15.5px; font-weight: 600; }
.simpicker .simb { width: 18px; height: 20px; font-size: 13px; border-radius: 5px; }
.simpicker .ic { width: 15px; height: 15px; color: rgba(255, 255, 255, .7); }
.acts { display: flex; justify-content: center; gap: 14px; margin: 22px 0 0; }
.act { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .16); transition: transform .15s, background .15s; }
.act:active { transform: scale(.93); background: rgba(255, 255, 255, .2); }
.act .ic { width: 28px; height: 28px; }
.pcard { margin: 14px 20px 0; border-radius: 24px; background: rgba(255, 255, 255, .085); overflow: hidden; }
.pcard + .pcard, .acts + .pcard { margin-top: 24px; }
.pcap { font-size: 17px; font-weight: 600; color: rgba(235, 235, 245, .62); padding: 26px 37px 0; }
.pcap + .pcard { margin-top: 8px; }
.pline { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 17px; width: calc(100% - 34px); padding: 12px 0; box-shadow: inset 0 -.6px 0 rgba(255, 255, 255, .12); }
.pline:last-child { box-shadow: none; }
button.pline:active { opacity: .6; }
.pline .grow { flex: 1; min-width: 0; }
.pline .k { font-size: 15.5px; }
.pline .k.red { color: var(--red); }
.pline .v { font-size: 14px; color: rgba(235, 235, 245, .62); margin-top: 1px; }
.pline .d { font-size: 14px; color: rgba(235, 235, 245, .62); white-space: nowrap; align-self: flex-start; }
.pline small { display: flex; align-items: center; gap: 7px; font-size: 14px; color: rgba(235, 235, 245, .62); }
.pline small i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); color: #fff; }
.pline b { display: block; font-size: 17px; font-weight: 400; margin-top: 2px; }
.pline .ic { width: 21px; height: 21px; }
.pline.head { padding: 15px 0; }
.pline.link { padding: 15px 0; font-size: 16.5px; color: var(--blue); }
.pline.link.red { color: var(--red); }
.chev { width: 13px; height: 13px; color: rgba(235, 235, 245, .35); }

/* Keypad */
.kp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 52px 0 0; }
.kp .simsel { align-self: flex-start; margin: 4px 0 0 16px; height: 44px; padding: 0 14px 0 12px; border-radius: 22px; gap: 10px; font-size: 16.5px; }
.kp .simsel .simb { width: 22px; height: 24px; font-size: 15px; border-radius: 6px; }
.kp .simsel .ic { width: 15px; height: 15px; color: var(--sec); }
.kp-num { height: 128px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 24px 16px; width: 100%; }
.kp-num b { font-size: 34px; font-weight: 400; letter-spacing: .01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.kp-num small { height: 18px; margin-top: 4px; font-size: 14px; color: var(--blue); }
.keys { display: grid; grid-template-columns: repeat(3, 84px); gap: 15px 28px; }
.key { width: 84px; height: 84px; border-radius: 50%; background: #333335; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .25s; }
.key:active { background: #6a6a6e; transition: none; }
.key b { font-size: 37px; font-weight: 300; line-height: 1; }
.key small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; margin-top: 2px; height: 12px; }
.key.sym b { font-size: 40px; margin-top: 8px; }
.kp-actions { display: grid; grid-template-columns: repeat(3, 84px); gap: 0 28px; margin-top: 16px; align-items: center; justify-items: center; }
.callbtn { width: 84px; height: 84px; border-radius: 50%; background: #30b350; display: grid; place-items: center; }
.callbtn:active { background: #5dd17c; }
.callbtn .ic { width: 38px; height: 38px; }
.delk { width: 44px; height: 44px; display: grid; place-items: center; color: #b4b4b8; }
.delk .ic { width: 28px; height: 28px; }

/* Messages */
.pins { display: flex; gap: 0; padding: 10px 4px 4px; }
.pin { width: 33.33%; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13.5px; color: var(--sec); position: relative; }
.pin .av { width: 92px; height: 92px; font-size: 34px; }
.pin .dot { position: absolute; top: 4px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.mrow { width: 100%; display: flex; gap: 9px; padding: 12px 14px 0 6px; cursor: pointer; text-align: left; }
.mrow:active { background: rgba(255, 255, 255, .06); }
.mrow .ud { flex: none; width: 10px; display: flex; align-items: center; }
.mrow .ud i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.mrow .av { align-self: center; margin-top: -10px; }
.mrow .mid { flex: 1; min-width: 0; padding-bottom: 12px; box-shadow: inset 0 -.6px 0 var(--sep); min-height: 82px; }
.mrow .top { display: flex; align-items: baseline; gap: 8px; }
.mrow .top b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .top span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sec); white-space: nowrap; }
.mrow .top .chev { width: 11px; height: 11px; }
.mrow p { margin: 3px 0 0; font-size: 15px; color: var(--sec); line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Conversation */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.chat.push { animation: ds-push .34s cubic-bezier(.2, .9, .3, 1); }
.chat.pop { animation: ds-pop .3s cubic-bezier(.2, .9, .3, 1); }
.chat-head { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 160px; padding-top: 52px; pointer-events: none;
    background: linear-gradient(#000 62%, rgba(0, 0, 0, 0)); }
.chat-head > * { pointer-events: auto; }
.chat-head .glass { position: absolute; left: 16px; top: 60px; }
.chat-head .who { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.chat-head .who .av { width: 60px; height: 60px; font-size: 24px; position: relative; z-index: 1; }
.chat-head .who .nm { margin-top: -6px; height: 34px; padding: 0 12px 0 15px; border-radius: 17px; display: flex; align-items: center; gap: 5px; max-width: 250px;
    background: var(--glass); box-shadow: inset 0 0 0 .8px var(--glass-line); font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.chat-head .who .nm span { overflow: hidden; text-overflow: ellipsis; }
.chat-head .who .nm .chev { width: 11px; height: 11px; color: var(--sec); }
.chat-head .glass.call { left: auto; right: 16px; }
.chat-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 160px 14px 86px; display: flex; flex-direction: column; }
.chat-body::-webkit-scrollbar { display: none; }
.stamp { text-align: center; font-size: 11.5px; color: var(--sec); margin: 14px 0 8px; line-height: 1.35; }
.stamp b { font-weight: 600; }
.bub { position: relative; max-width: 75%; padding: 7px 13px 8px; border-radius: 18px; font-size: 15.5px; line-height: 1.3; margin-top: 3px; word-wrap: break-word; white-space: pre-wrap; }
.bub.in { align-self: flex-start; background: #262629; }
.bub.out { align-self: flex-end; background: #30c556; }
.bub.gap { margin-top: 9px; }
.bub.tail::before, .bub.tail::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.bub.in.tail::before { left: -7px; width: 20px; background: #262629; border-bottom-right-radius: 16px 14px; }
.bub.in.tail::after { left: -26px; width: 26px; background: #000; border-bottom-right-radius: 10px; }
.bub.out.tail::before { right: -7px; width: 20px; background: #30c556; border-bottom-left-radius: 16px 14px; }
.bub.out.tail::after { right: -26px; width: 26px; background: #000; border-bottom-left-radius: 10px; }
.bub.new { animation: ds-bub .3s cubic-bezier(.2, 1.2, .4, 1); }
.bub.out.new { transform-origin: bottom right; } .bub.in.new { transform-origin: bottom left; }
@keyframes ds-bub { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.bub.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub.typing i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; animation: ds-dot 1.2s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .2s; } .bub.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ds-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.receipt { font-size: 11.5px; font-weight: 500; color: var(--sec); margin: 4px 4px 0; align-self: flex-end; }
.receipt.l { align-self: flex-start; display: flex; align-items: center; gap: 5px; margin-left: 2px; }
.receipt.err { color: var(--red); cursor: pointer; }
.composer { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 26px; min-height: 42px; border-radius: 21px; display: flex; align-items: center; padding: 0 5px 0 17px;
    background: rgba(28, 28, 30, .86); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.composer input { flex: 1; min-width: 0; height: 42px; outline: 0; font-size: 15.5px; }
.composer input::placeholder { color: var(--ter); }
.composer .send { width: 32px; height: 32px; border-radius: 50%; background: #30c556; display: grid; place-items: center; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.composer .send.on { transform: scale(1); }
.composer .send .ic { width: 18px; height: 18px; }
.composer.note { justify-content: center; color: var(--sec); font-size: 13px; padding: 0 16px; }

/* Gateway tab (Settings-style groups) */
.gw { padding: 6px 14px 0; }
.gwhero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.halo { position: relative; width: 126px; height: 126px; display: grid; place-items: center; }
.halo .disc { width: 106px; height: 106px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; overflow: hidden; }
.halo .disc img { height: 80px; width: auto; display: block; }
.halo .ring { position: absolute; inset: 0; border-radius: 50%; border: 2.7px solid var(--green); box-shadow: 0 0 10px rgba(48, 209, 88, .55), inset 0 0 8px rgba(48, 209, 88, .3);
    transition: opacity .4s; }
.halo.off .ring { opacity: 0; }
.halo .comet { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .3s;
    background: conic-gradient(from 0deg, transparent 0 55%, rgba(48, 209, 88, .55) 85%, #9fffc8 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.halo.connecting .comet { opacity: 1; animation: ds-spin 1.1s linear infinite; }
.halo.connecting .ring { opacity: 0; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.gwhero h2 { margin: 12px 0 0; font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.gwhero .state { margin-top: 9px; height: 24px; padding: 0 13px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
    background: rgba(48, 209, 88, .16); color: var(--green); }
.gwhero .state.off { background: rgba(142, 142, 147, .2); color: var(--gray); }
.gwhero .state.wait { background: rgba(255, 159, 10, .16); color: var(--orange); }
.gwhero .voice { margin-top: 6px; display: flex; align-items: center; gap: 3px; font-size: 15px; color: var(--blue); }
.gwhero .voice .ic { width: 15px; height: 15px; }
.gwhero .lic { margin-top: 3px; font-size: 13.5px; font-weight: 500; color: var(--green); }
.gwhero .lic.g { color: var(--sec); font-weight: 400; }
.group { margin-top: 20px; border-radius: 24px; background: var(--card); overflow: hidden; }
.gcap { margin: 22px 18px -12px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--sec); }
.srow { position: relative; width: 100%; display: flex; align-items: center; gap: 13px; min-height: 52px; padding: 9px 14px 9px 16px; text-align: left; }
.srow + .srow::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .6px; background: var(--sep); }
button.srow:active, .srow.tap:active { background: rgba(255, 255, 255, .08); }
.sico { flex: none; width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.sico .ic { width: 17px; height: 17px; }
.srow .lab { flex: 1; min-width: 0; }
.srow .lab b { display: block; font-size: 15.5px; font-weight: 400; }
.srow .lab small { display: block; font-size: 12.5px; color: var(--sec); margin-top: 1px; }
.srow .lab small.warn { color: var(--orange); }
.srow .val { font-size: 15.5px; color: var(--sec); white-space: nowrap; }
.srow .val.good { color: var(--green); }
.srow .chev { width: 12px; height: 12px; color: var(--ter); margin-left: -4px; }
.srow .chk { color: var(--blue); }
.srow .chk .ic { width: 18px; height: 18px; }
.sbars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; vertical-align: middle; }
.sbars i { width: 4px; border-radius: 1.5px; background: var(--green); }
.sbars i:nth-child(1) { height: 5px; } .sbars i:nth-child(2) { height: 8px; } .sbars i:nth-child(3) { height: 11px; } .sbars i:nth-child(4) { height: 14px; }
.sbars i.off { background: rgba(48, 209, 88, .3); }
.sbars.gray i { background: #48484a; }
.sw { flex: none; position: relative; width: 56px; height: 27px; border-radius: 14px; background: rgba(120, 120, 128, .36); transition: background .25s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 36px; height: 23px; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.sw.on { background: var(--green); }
.sw.on::after { transform: translateX(16px); }
.sw.busy { opacity: .55; }
.wbtn { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 16.5px; }
.wbtn .ic { width: 21px; height: 21px; }
.wbtn.orange { color: var(--orange); } .wbtn.red { color: var(--red); } .wbtn.blue { color: var(--blue); }
.wbtn.fill { margin: 14px auto 0; width: calc(100% - 28px); height: 48px; border-radius: 24px; background: var(--blue); color: #fff; font-weight: 600; }
.wbtn:active { opacity: .6; }
.gnote { font-size: 12.5px; color: var(--sec); text-align: center; padding: 0 22px 14px; line-height: 1.35; }
.gver { text-align: center; font-size: 12.5px; color: var(--sec); margin: 18px 0 0; }
.ghead { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 20px 0; }
.ghead .sico { width: 62px; height: 62px; border-radius: 16px; }
.ghead .sico .ic { width: 34px; height: 34px; }
.ghead img { width: 72px; height: 72px; border-radius: 17px; }
.ghead h3 { margin: 12px 0 0; font-size: 21px; font-weight: 700; }
.ghead p { margin: 5px 0 0; font-size: 13.5px; color: var(--sec); line-height: 1.35; }
.gfoot { font-size: 12.5px; color: var(--sec); padding: 8px 18px 0; line-height: 1.35; }

/* Overlays */
.ds-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.ds-layer > * { pointer-events: auto; }
.scrim { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); animation: ds-fade .2s; }
.alert { width: 274px; border-radius: 28px; background: rgba(40, 40, 42, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .1); animation: ds-alert .25s cubic-bezier(.3, 1.3, .5, 1); padding: 20px 18px 16px; }
@keyframes ds-alert { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
.alert h5 { margin: 0; font-size: 16px; font-weight: 600; text-align: center; }
.alert p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.38; text-align: center; white-space: pre-line; color: rgba(235, 235, 245, .85); }
.alert p.left { text-align: left; }
.alert input { width: 100%; margin-top: 14px; height: 36px; border-radius: 10px; background: rgba(0, 0, 0, .4); padding: 0 11px; font-size: 15px; outline: 0;
    box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .12); }
.alert .spin { width: 26px; height: 26px; margin: 14px auto 2px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: ds-spin .8s linear infinite; }
.alert .btns { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.alert .btns.two { flex-direction: row; }
.alert .btns button { flex: 1; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .1); font-size: 16px; font-weight: 500; text-align: center; }
.alert .btns button.pri { background: var(--blue); font-weight: 600; }
.alert .btns button.red { color: var(--red); }
.alert .btns button:active { opacity: .6; }
.sheet { align-self: end; justify-self: stretch; margin: 0 8px 8px; border-radius: 34px; padding: 8px 8px 12px; background: rgba(36, 36, 38, .94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: ds-sheet .32s cubic-bezier(.2, .9, .3, 1); max-height: 78%; overflow-y: auto; scrollbar-width: none; }
@keyframes ds-sheet { from { transform: translateY(100%); } to { transform: none; } }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 0 auto 8px; }
.sheet h5 { margin: 4px 0 10px; text-align: center; font-size: 15.5px; font-weight: 600; }
.sheet .opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; text-align: left; }
.sheet .opt:active { background: rgba(255, 255, 255, .08); }
.sheet .opt span { flex: 1; min-width: 0; font-size: 15.5px; }
.sheet .opt small { display: block; color: var(--sec); font-size: 13px; margin-top: 1px; }
.sheet .opt .simb { width: 22px; height: 24px; font-size: 14px; border-radius: 6px; }
.sheet .opt .av { width: 38px; height: 38px; font-size: 14px; }
.sheet .opt .ok { color: var(--blue); }
.sheet .opt .ok .ic { width: 18px; height: 18px; }
.toast { position: absolute; left: 50%; bottom: 168px; transform: translateX(-50%); padding: 10px 18px; border-radius: 20px; white-space: nowrap;
    background: rgba(58, 58, 60, .95); font-size: 14px; font-weight: 600; animation: ds-fade .2s; }
.banner { position: absolute; top: 50px; left: 8px; right: 8px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 26px; text-align: left;
    background: rgba(48, 48, 52, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    animation: ds-banner .45s cubic-bezier(.2, 1.2, .4, 1); cursor: pointer; }
.banner.out { transition: transform .3s, opacity .3s; transform: translateY(-120%); opacity: 0; }
@keyframes ds-banner { from { transform: translateY(-130%); } to { transform: none; } }
.banner img { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.banner .t { flex: 1; min-width: 0; }
.banner .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.banner .top b { font-weight: 600; }
.banner .top span { color: var(--sec); font-size: 12.5px; }
.banner p { margin: 1px 0 0; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.retcall { position: absolute; z-index: 45; top: 56px; left: 50%; transform: translateX(-50%); height: 34px; padding: 0 15px; border-radius: 17px; display: flex; align-items: center; gap: 6px;
    background: #30c556; font-size: 14.5px; font-weight: 600; animation: ds-fade .2s; }
.retcall .ic { width: 15px; height: 15px; }

/* In-call screen (SimBridge's own) and incoming call */
.callscreen { position: absolute; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; padding: 70px 26px 40px;
    background: linear-gradient(180deg, #333954, #1d1f33); animation: ds-callin .38s cubic-bezier(.2, .9, .3, 1); }
.callscreen.closing { transition: transform .3s ease-in, opacity .3s; transform: translateY(100%); opacity: 0; }
@keyframes ds-callin { from { transform: translateY(100%); } to { transform: none; } }
.callscreen .min { position: absolute; left: 22px; top: 70px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; }
.callscreen .min .ic { width: 24px; height: 24px; }
.callscreen .status { margin-top: 44px; font-size: 18px; color: rgba(235, 235, 245, .62); font-variant-numeric: tabular-nums; }
.callscreen h2 { margin: 6px 0 0; font-size: 33px; font-weight: 600; letter-spacing: -.015em; text-align: center; line-height: 1.12; }
.callscreen .route { margin-top: 8px; font-size: 15px; color: rgba(235, 235, 245, .62); display: flex; align-items: center; gap: 6px; }
.callscreen .grow { flex: 1; }
.cgrid { display: grid; grid-template-columns: repeat(3, 70px); gap: 22px 52px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13.5px; }
.cbtn i { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); transition: background .2s, color .2s; }
.cbtn i .ic { width: 28px; height: 28px; }
.cbtn.on i { background: #fff; color: #1d1f33; }
.cbtn:disabled { opacity: .4; }
.endrow { display: grid; grid-template-columns: repeat(3, 70px); gap: 0 52px; margin-top: 26px; align-items: start; }
.endbtn { width: 70px; height: 70px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; grid-column: 2; }
.endbtn .ic { width: 32px; height: 32px; transform: rotate(135deg); }
.endbtn:active { background: #ff6b62; }
.callkeys { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; }
.callkeys .key { width: 72px; height: 72px; background: rgba(255, 255, 255, .16); }
.callkeys .key b { font-size: 32px; }
.dtmf { margin-top: 14px; height: 32px; font-size: 26px; letter-spacing: .05em; }
.hidekeys { grid-column: 3; height: 70px; font-size: 16px; color: #fff; }
.incoming { padding-top: 96px; background: linear-gradient(180deg, #3b3f5c, #20223a); }
.incoming .app { font-size: 14px; color: rgba(235, 235, 245, .62); display: flex; align-items: center; gap: 7px; }
.incoming .app img { width: 18px; height: 18px; border-radius: 5px; }
.incoming h2 { margin-top: 10px; font-size: 36px; }
.incoming .route { margin-top: 6px; }
.incoming .av { width: 110px; height: 110px; font-size: 40px; margin-top: 40px; box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); animation: ds-ring 1.6s infinite; }
@keyframes ds-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.answer { display: flex; justify-content: space-between; width: 100%; padding: 0 14px; }
.answer div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.answer button { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; }
.answer .ic { width: 32px; height: 32px; }
.answer .no { background: #ff3b30; } .answer .no .ic { transform: rotate(135deg); }
.answer .yes { background: #30c556; animation: ds-wiggle 1.4s ease-in-out infinite; }
@keyframes ds-wiggle { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
    .ds *, .ds *::before, .ds *::after { animation: none !important; transition: none !important; }
}
