/* ============================================================
   Phone frame + platform themes (the exported artwork)
   All self-contained. System fonts only (no external fetch).
   ============================================================ */
/* ===================== REALISTIC DEVICE FRAMES =====================
   #capture wraps the .phone so protruding side buttons stay in-frame. */
.capture-wrap{display:inline-block;padding:7px;background:transparent}
.phone{
  --bezel:#0a0a0c;width:340px;position:relative;font-family:var(--font);color:#000;box-sizing:border-box;
}
.phone *{box-sizing:border-box}
.phone-screen{position:relative;overflow:hidden;background:#fff;z-index:1;display:flex;flex-direction:column}
/* realistic tall phone proportions — screen height is fixed by device, not by content */
.phone[data-device="iphone15"] .phone-screen,
.phone[data-device="iphone14"] .phone-screen,
.phone[data-device="galaxy"]  .phone-screen,
.phone[data-device="pixel"]   .phone-screen,
.phone[data-device="none"]    .phone-screen{min-height:686px}
.phone[data-device="iphonese"] .phone-screen{min-height:548px}
.cutout{position:absolute;top:0;left:50%;transform:translateX(-50%);background:#000;z-index:6}

/* device body: metallic rail + inner black bezel, built with layered shadows */
.phone[data-device]{padding:12px;border-radius:52px;
  background:linear-gradient(135deg,#54575e,#2c2e33 22%,#0e0f12 55%,#3a3c42 100%);
  box-shadow:inset 0 0 2px 1px rgba(255,255,255,.35),inset 0 0 0 2px #050506,0 26px 55px rgba(0,0,0,.5),0 4px 14px rgba(0,0,0,.35);}
.phone[data-device] .phone-screen{border-radius:41px;box-shadow:inset 0 0 0 3px #050506}
/* physical side buttons (kept inside the capture wrapper) */
.phone[data-device]::after{content:"";position:absolute;right:-2px;top:152px;width:3px;height:80px;border-radius:0 2px 2px 0;background:linear-gradient(#3a3c42,#141519);box-shadow:0 1px 2px rgba(0,0,0,.4)}
.phone[data-device]::before{content:"";position:absolute;left:-2px;top:120px;width:3px;height:96px;border-radius:2px 0 0 2px;background:linear-gradient(#3a3c42,#141519)}

/* ---- iPhone 15 Pro (Dynamic Island, titanium) ---- */
.phone[data-device="iphone15"]{background:linear-gradient(135deg,#8a8d93,#4b4d52 20%,#26282c 55%,#5b5e64 100%);border-radius:54px}
.phone[data-device="iphone15"] .cutout{top:11px;width:98px;height:30px;border-radius:16px}
.phone[data-device="iphone15"] .statusbar{padding-top:16px}

/* ---- iPhone 14 (notch, aluminium) ---- */
.phone[data-device="iphone14"]{border-radius:50px}
.phone[data-device="iphone14"] .cutout{top:0;width:154px;height:27px;border-radius:0 0 18px 18px}

/* ---- iPhone SE (home button, big bezels) ---- */
.phone[data-device="iphonese"]{padding:56px 12px;border-radius:34px;background:linear-gradient(135deg,#3a3c42,#161719 60%,#2c2e33)}
.phone[data-device="iphonese"] .phone-screen{border-radius:4px;box-shadow:inset 0 0 0 2px #050506}
.phone[data-device="iphonese"] .cutout{display:none}
.phone[data-device="iphonese"]::before,.phone[data-device="iphonese"]::after{display:none}
.home-btn{position:absolute;bottom:11px;left:50%;transform:translateX(-50%);width:38px;height:38px;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,#1a1b1d,#0a0a0b);box-shadow:inset 0 0 0 1.5px #3a3c42;z-index:2}

/* ---- Samsung Galaxy (centred punch-hole, thin uniform bezel) ---- */
.phone[data-device="galaxy"]{padding:8px;border-radius:40px;background:linear-gradient(135deg,#3d3f45,#161719 55%,#33353b)}
.phone[data-device="galaxy"] .phone-screen{border-radius:34px}
.phone[data-device="galaxy"] .cutout{top:9px;width:12px;height:12px;border-radius:50%}
.phone[data-device="galaxy"] .statusbar{padding-top:10px}

/* ---- Google Pixel (centred punch-hole, slightly bigger radius) ---- */
.phone[data-device="pixel"]{padding:9px;border-radius:44px;background:linear-gradient(135deg,#4a4c52,#1c1d20 55%,#3a3c42)}
.phone[data-device="pixel"] .phone-screen{border-radius:36px}
.phone[data-device="pixel"] .cutout{top:10px;width:13px;height:13px;border-radius:50%}
.phone[data-device="pixel"] .statusbar{padding-top:11px}

/* ---- Screen only (pure screenshot) ---- */
.phone[data-device="none"]{padding:0;border-radius:26px;background:none;box-shadow:var(--shadow-lg)}
.phone[data-device="none"] .phone-screen{border-radius:26px;box-shadow:none}
.phone[data-device="none"] .cutout{display:none}
.phone[data-device="none"]::before,.phone[data-device="none"]::after{display:none}

/* Status bar */
.statusbar{display:flex;align-items:center;justify-content:space-between;padding:14px 22px 6px;font-size:15px;font-weight:700;position:relative;z-index:5}
.statusbar.pad-island{padding-top:16px}
.statusbar .sb-time{min-width:54px}
.statusbar .sb-right{display:flex;align-items:center;gap:6px}
.sb-ic{height:12px;width:auto;display:block}
.sb-batt{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:600}
.sb-batt .cap{width:22px;height:11px;border:1px solid currentColor;border-radius:3px;position:relative;opacity:.9}
.sb-batt .cap::after{content:"";position:absolute;right:-3px;top:3px;width:2px;height:5px;background:currentColor;border-radius:0 2px 2px 0}
.sb-batt .lvl{position:absolute;top:1px;left:1px;bottom:1px;background:currentColor;border-radius:1px}

/* ===== Generic chat area ===== */
.chat-head{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid rgba(0,0,0,.08);position:relative;z-index:4}
.chat-head .back{color:#0a84ff;font-size:26px;line-height:1;font-weight:300}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#c7c7cc;display:grid;place-items:center;font-weight:700;color:#fff;font-size:14px;flex:none}
.chat-head .who{display:flex;flex-direction:column;flex:1;min-width:0}
.chat-head .name{font-weight:700;font-size:15px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head .sub{font-size:11px;color:#8e8e93}
.chat-head .actions{display:flex;gap:16px;color:#0a84ff;font-size:20px}
.chat-body{padding:14px 12px 18px;display:flex;flex-direction:column;gap:3px;flex:1 1 auto;min-height:0;background:#fff}
.bubble-row{display:flex;flex-direction:column;max-width:78%}
.bubble-row.me{align-self:flex-end;align-items:flex-end}
.bubble-row.them{align-self:flex-start;align-items:flex-start}
.bubble{padding:8px 13px;border-radius:19px;font-size:15px;line-height:1.35;word-wrap:break-word;position:relative}
.bubble-row.me .bubble{background:#0a84ff;color:#fff;border-bottom-right-radius:6px}
.bubble-row.them .bubble{background:#e9e9eb;color:#000;border-bottom-left-radius:6px}
.time-sep{align-self:center;font-size:11px;color:#8e8e93;margin:10px 0 4px;font-weight:600}
.receipt{font-size:11px;color:#8e8e93;margin-top:2px}
.gap{margin-top:9px}
.typing{display:inline-flex;gap:4px;padding:12px 15px;background:#e9e9eb;border-radius:19px;border-bottom-left-radius:6px}
.typing span{width:8px;height:8px;border-radius:50%;background:#9a9a9a;animation:tp 1.2s infinite}
.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}
@keyframes tp{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.chat-input{display:flex;align-items:center;gap:8px;padding:8px 12px 12px;border-top:1px solid rgba(0,0,0,.07)}
.chat-input .box{flex:1;border:1px solid #d1d1d6;border-radius:18px;padding:7px 12px;font-size:14px;color:#8e8e93}

/* ===== iMessage ===== */
.theme-imessage .chat-body{background:#fff}
.theme-imessage .bubble-row.me .bubble{background:linear-gradient(#0a84ff,#0a84ff)}
.theme-imessage.sms .bubble-row.me .bubble{background:#34c759}
.theme-imessage .receipt{text-align:right}

/* ===== Dark mode (iMessage/generic) ===== */
.phone.dark .phone-screen{background:#000;color:#fff}
.phone.dark .chat-body{background:#000}
.phone.dark .chat-head{border-color:rgba(255,255,255,.12)}
.phone.dark .bubble-row.them .bubble{background:#26262a;color:#fff}
.phone.dark .chat-input{border-color:rgba(255,255,255,.1)}
.phone.dark .chat-input .box{border-color:#3a3a3c;background:#1c1c1e}
.phone.dark .typing{background:#26262a}

/* ===== WhatsApp ===== */
.theme-whatsapp .phone-screen{background:#efeae2}
.theme-whatsapp .statusbar{background:#075e54;color:#fff}
.theme-whatsapp .chat-head{background:#075e54;color:#fff;border:0}
.theme-whatsapp .chat-head .name{color:#fff}.theme-whatsapp .chat-head .sub{color:#cfe9e3}
.theme-whatsapp .chat-head .back,.theme-whatsapp .chat-head .actions{color:#fff}
.theme-whatsapp .chat-body{background:#efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23d9cfc4' fill-opacity='.35'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='40' cy='30' r='1.5'/%3E%3Ccircle cx='20' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E")}
.theme-whatsapp .bubble{border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.12);font-size:14.5px}
.theme-whatsapp .bubble-row.me .bubble{background:#d9fdd3;color:#111b21;border-bottom-right-radius:3px}
.theme-whatsapp .bubble-row.them .bubble{background:#fff;color:#111b21;border-bottom-left-radius:3px}
.theme-whatsapp .receipt{display:none}
.theme-whatsapp .bubble .meta{font-size:10px;color:#667781;float:right;margin:6px 0 -4px 8px}
.theme-whatsapp .bubble .tick{color:#53bdeb;font-weight:700}
.theme-whatsapp.dark .phone-screen,.theme-whatsapp.dark .chat-body{background:#0b141a}
.theme-whatsapp.dark .chat-head,.theme-whatsapp.dark .statusbar{background:#1f2c34}
.theme-whatsapp.dark .bubble-row.them .bubble{background:#1f2c34;color:#e9edef}
.theme-whatsapp.dark .bubble-row.me .bubble{background:#005c4b;color:#e9edef}
.theme-whatsapp.dark .chat-input .box{background:#1f2c34;border-color:#2a3942}

/* ===== Instagram DM ===== */
.theme-instagram .chat-head{border-color:#dbdbdb}
.theme-instagram .chat-head .back,.theme-instagram .chat-head .actions{color:#000}
.theme-instagram .bubble{border-radius:22px;font-size:14.5px}
.theme-instagram .bubble-row.me .bubble{background:#3797f0;color:#fff}
.theme-instagram .bubble-row.them .bubble{background:#efefef;color:#000}
.theme-instagram.grad .bubble-row.me .bubble{background:linear-gradient(135deg,#5b51d8,#d92e7f,#f9ce34)}
.theme-instagram.dark .phone-screen,.theme-instagram.dark .chat-body{background:#000;color:#fff}
.theme-instagram.dark .chat-head{border-color:#262626}
.theme-instagram.dark .chat-head .back,.theme-instagram.dark .chat-head .actions,.theme-instagram.dark .chat-head .name{color:#fff}
.theme-instagram.dark .bubble-row.them .bubble{background:#262626;color:#fff}
.theme-instagram.dark .chat-input .box{background:#1a1a1a;border-color:#333;color:#aaa}

/* ===== Messenger ===== */
.theme-messenger .bubble{border-radius:18px;font-size:15px}
.theme-messenger .bubble-row.me .bubble{background:#0084ff;color:#fff}
.theme-messenger .bubble-row.them .bubble{background:#e4e6eb;color:#050505}
.theme-messenger .chat-head .back,.theme-messenger .chat-head .actions{color:#0084ff}
.theme-messenger.dark .phone-screen,.theme-messenger.dark .chat-body{background:#000;color:#fff}
.theme-messenger.dark .bubble-row.them .bubble{background:#303030;color:#fff}

/* ===== Snapchat ===== */
.theme-snapchat .statusbar{background:#fffc00;color:#000}
.theme-snapchat .chat-head{background:#fffc00;color:#000;border:0}
.theme-snapchat .chat-head .name{color:#000}
.theme-snapchat .chat-head .back,.theme-snapchat .chat-head .actions{color:#000}
.theme-snapchat .chat-body{background:#fff}
.theme-snapchat .bubble{background:transparent!important;padding:5px 10px;border-radius:4px;font-size:15px;font-weight:600}
.theme-snapchat .bubble-row.me{border-left:3px solid #f23c57}
.theme-snapchat .bubble-row.them{border-left:3px solid #00b0ff}
.theme-snapchat .bubble-row.me .bubble{color:#111}.theme-snapchat .bubble-row.them .bubble{color:#111}
.theme-snapchat .sender{font-size:10px;font-weight:800;letter-spacing:.04em;margin:6px 0 1px;text-transform:uppercase}
.theme-snapchat .bubble-row.me .sender{color:#f23c57;align-self:flex-end}
.theme-snapchat .bubble-row.them .sender{color:#00b0ff}

/* ===== Tinder ===== */
.theme-tinder .chat-head{border-color:#ededed;justify-content:center;flex-direction:column;gap:4px;padding-top:12px}
.theme-tinder .chat-head .avatar{width:56px;height:56px}
.theme-tinder .chat-head .name{font-size:14px}
.theme-tinder .bubble{border-radius:22px;font-size:15px;border:1px solid transparent}
.theme-tinder .bubble-row.me .bubble{background:#fe3c72;color:#fff}
.theme-tinder .bubble-row.them .bubble{background:#f0f0f0;color:#000}
.theme-tinder .match-banner{text-align:center;padding:14px;font-size:12px;color:#fe3c72;font-weight:700;text-transform:uppercase;letter-spacing:.05em}

/* ===== Twitter/X DM ===== */
.theme-xdm .chat-head{border-color:#eff3f4}
.theme-xdm .chat-head .back{color:#0f1419}
.theme-xdm .bubble{border-radius:22px;font-size:15px}
.theme-xdm .bubble-row.me .bubble{background:#1d9bf0;color:#fff}
.theme-xdm .bubble-row.them .bubble{background:#eff3f4;color:#0f1419}
.theme-xdm .receipt{color:#536471;font-size:11px}
.theme-xdm.dark .phone-screen,.theme-xdm.dark .chat-body{background:#000;color:#fff}
.theme-xdm.dark .chat-head{border-color:#2f3336}
.theme-xdm.dark .chat-head .back,.theme-xdm.dark .chat-head .name{color:#e7e9ea}
.theme-xdm.dark .bubble-row.them .bubble{background:#202327;color:#e7e9ea}

/* ===== ChatGPT / AI chat ===== */
.theme-aichat .phone-screen{background:#fff;color:#0d0d0d}
.theme-aichat.dark .phone-screen{background:#212121;color:#ececec}
.ai-head{display:flex;align-items:center;gap:10px;padding:6px 14px 8px;font-weight:600}
.ai-menu,.ai-new{color:#0d0d0d;display:inline-flex}
.theme-aichat.dark .ai-menu,.theme-aichat.dark .ai-new{color:#ececec}
.ai-title{flex:1;text-align:center;font-size:17px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ai-sub{color:#8e8ea0;font-weight:500}
.ai-body{flex:1 1 auto;min-height:0;padding:12px 14px 16px;display:flex;flex-direction:column;gap:18px;overflow:hidden}
.ai-user{display:flex;justify-content:flex-end}
.ai-ubub{background:#f4f4f4;color:#0d0d0d;padding:10px 15px;border-radius:20px;max-width:80%;font-size:15px;line-height:1.45;word-wrap:break-word}
.theme-aichat.dark .ai-ubub{background:#303030;color:#ececec}
.ai-asst{display:flex;gap:10px;align-items:flex-start}
.ai-logo{width:26px;height:26px;border-radius:50%;background:#000;display:grid;place-items:center;flex:none;margin-top:1px}
.theme-aichat.dark .ai-logo{background:#0d0d0d;box-shadow:0 0 0 1px #444}
.ai-atext{font-size:15px;line-height:1.5;word-wrap:break-word;padding-top:2px}
.ai-input{display:flex;align-items:center;gap:10px;margin:0 12px 12px;padding:9px 14px;border:1px solid #e2e2e2;border-radius:26px}
.theme-aichat.dark .ai-input{border-color:#3a3a3a;background:#2f2f2f}
.ai-plus{font-size:22px;color:#0d0d0d;line-height:1}
.theme-aichat.dark .ai-plus{color:#ececec}
.ai-box{flex:1;color:#8e8ea0;font-size:15px}
.ai-mic{color:#0d0d0d;display:inline-flex}
.theme-aichat.dark .ai-mic{color:#ececec}

/* ===== Football / FUT-style player card ===== */
.fut-card{width:300px;border-radius:16px;overflow:hidden;position:relative;font-family:var(--font);
  box-shadow:var(--shadow-lg);color:#2a2100;background:linear-gradient(160deg,#f8ecb0,#eacb62 45%,#cf9f2e)}
.fut-card .fut-shine{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(120deg,transparent 40%,rgba(255,255,255,.35) 50%,transparent 60%)}
.fut-inner{position:relative;z-index:1;padding:24px 22px 20px}
.fut-head{display:flex;min-height:150px}
.fut-meta{display:flex;flex-direction:column;align-items:center;width:60px;flex:none}
.fut-rating{font-size:46px;font-weight:800;line-height:.9}
.fut-pos{font-size:15px;font-weight:800;letter-spacing:.03em;margin-top:2px}
.fut-badges{display:flex;flex-direction:column;gap:8px;align-items:center;margin-top:12px}
.fut-badges img{width:30px;height:auto;object-fit:contain}
.fut-ph-badge{width:26px;height:18px;border-radius:3px;background:rgba(0,0,0,.14)}
.fut-photo{flex:1;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.fut-photo img{max-height:180px;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.25))}
.fut-photo>svg{width:130px;margin-bottom:-4px}
.fut-name{text-align:center;font-size:24px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  padding:8px 0 10px;margin-top:4px;border-bottom:2px solid rgba(0,0,0,.28)}
.fut-stats{display:flex;justify-content:center;gap:26px;padding-top:14px}
.fut-col{display:flex;flex-direction:column;gap:9px}
.fut-stat{display:flex;align-items:baseline;gap:7px;font-size:15px;font-weight:800}
.fut-stat b{font-size:17px;min-width:24px}
.fut-stat span{font-weight:800;letter-spacing:.02em}
/* variants */
.fut-card.style-silver{background:linear-gradient(160deg,#f2f3f6,#c9ccd6 45%,#a9adba);color:#2b2f38}
.fut-card.style-bronze{background:linear-gradient(160deg,#f0c39c,#c98a5e 45%,#a2663d);color:#3a2213}
.fut-card.style-icon{background:linear-gradient(160deg,#fff6e0,#f0e2b4 45%,#e2cf86);color:#4a3a13}
.fut-card.style-toty{background:linear-gradient(160deg,#2b2b30,#141417 55%,#000);color:#f4d67a}
.fut-card.style-toty .fut-name{border-color:rgba(244,214,122,.4)}
.fut-card.style-toty .fut-ph-badge{background:rgba(255,255,255,.14)}
.fut-card.style-team{background:linear-gradient(160deg,#1fb6a6,#0d8f86 50%,#075e57);color:#effffb}
.fut-card.style-team .fut-name{border-color:rgba(255,255,255,.35)}
.fut-card.style-team .fut-ph-badge{background:rgba(255,255,255,.18)}

/* ===== Spotify Now Playing ===== */
.sp-screen{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;color:#fff;padding:0 20px 22px}
.sp-top{display:flex;align-items:center;justify-content:space-between;padding:4px 0 10px;color:#fff}
.sp-ctx{text-align:center;line-height:1.2}
.sp-ctx-l{font-size:10px;letter-spacing:.08em;opacity:.7;text-transform:uppercase}
.sp-ctx-n{font-size:13px;font-weight:700}
.sp-art{width:100%;aspect-ratio:1;border-radius:8px;background-size:cover;background-position:center;box-shadow:0 16px 40px rgba(0,0,0,.5);margin:18px 0 26px}
.sp-meta{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.sp-title{font-size:23px;font-weight:800;line-height:1.15}
.sp-artist{font-size:15px;opacity:.72;margin-top:3px}
.sp-heart{margin-left:auto;color:#1ed760}
.sp-bar-track{height:4px;background:rgba(255,255,255,.3);border-radius:2px;overflow:hidden}
.sp-bar-track span{display:block;height:100%;background:#fff;border-radius:2px}
.sp-times{display:flex;justify-content:space-between;font-size:11px;opacity:.7;margin-top:6px}
.sp-ctrl{display:flex;align-items:center;justify-content:space-between;margin:20px 0 22px}
.sp-play{width:64px;height:64px;border-radius:50%;background:#fff;display:grid;place-items:center}
.sp-sm{opacity:.85}
.sp-foot{display:flex;justify-content:space-between;color:#fff;opacity:.85;margin-top:auto}

/* ===== Discord (message-list style) ===== */
.theme-discord .phone-screen{background:#313338;color:#dbdee1}
.theme-discord .statusbar{background:#313338;color:#fff}
.theme-discord .chat-head.dc-topbar{background:#313338;border-bottom:1px solid #232428;color:#f2f3f5;box-shadow:0 1px 0 #2b2d31}
.theme-discord .dc-hash{color:#80848e;font-size:24px;font-weight:600;margin-right:4px;line-height:1}
.theme-discord .chat-head .back{color:#dbdee1}
.dc-avwrap{position:relative;display:inline-flex}
.theme-discord .dc-avwrap .grp-av{width:30px;height:30px;font-size:12px}
.dc-online{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#23a55a;border:2.5px solid #313338}
.theme-discord .chat-head .name{color:#f2f3f5}
.theme-discord .chat-head .actions{color:#b5bac1;margin-left:auto}
.theme-discord .chat-body{background:#313338;gap:0;padding:14px 14px 16px}
.dc-row{display:flex;gap:14px;padding:1px 0}
.dc-row.dc-first{margin-top:16px}
.dc-gutter{width:40px;flex:none}
.theme-discord .dc-row .grp-av{width:40px;height:40px;font-size:15px;margin:2px 0 0}
.dc-main{flex:1;min-width:0}
.dc-hd{display:flex;align-items:baseline;gap:8px;line-height:1.2}
.dc-name{font-weight:600;font-size:15px}
.dc-time{font-size:11px;color:#949ba4}
.dc-text{font-size:15px;line-height:1.35;color:#dbdee1;word-wrap:break-word}
.theme-discord .chat-input{background:#313338;border:0;padding:6px 14px 14px}
.theme-discord .chat-input .box{flex:1;background:#383a40;border:0;color:#b5bac1;border-radius:8px;padding:11px 14px}
.theme-discord .chat-input .ci-ic{color:#b5bac1}

/* ===== Call screens ===== */
.callscreen{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;color:#fff;position:relative;
  background:linear-gradient(160deg,#3a3a3c,#1c1c1e);padding:0 0 46px}
.callscreen.blur-bg::before{content:"";position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(18px) brightness(.7);z-index:0}
.callscreen>*{position:relative;z-index:1}
.call-top{margin-top:60px;text-align:center}
.call-name{font-size:34px;font-weight:600;margin-bottom:6px}
.call-sub{font-size:17px;opacity:.85}
.call-avatar{width:120px;height:120px;border-radius:50%;margin:34px auto;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:52px;overflow:hidden;object-fit:cover}
.call-actions{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:22px 70px;padding:0 52px;width:100%;justify-items:center}
.call-btn{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:12.5px;color:#fff}
.call-btn .circ{width:68px;height:68px;border-radius:50%;background:rgba(235,235,245,.22);backdrop-filter:blur(2px);display:grid;place-items:center;color:#fff}
.call-answer .circ{background:#34c759}.call-decline .circ{background:#ff3b30}
.call-answer .circ .ic-svg{transform:none}
.call-bottom{display:flex;justify-content:space-around;width:100%;padding:0 30px;margin-top:22px}
.facetime{background:linear-gradient(160deg,#0a3d2e,#031b14)}
.ft-selfie{position:absolute;top:60px;right:16px;width:92px;height:130px;border-radius:14px;background:rgba(255,255,255,.15);z-index:2;overflow:hidden;object-fit:cover}

/* ===== Notifications (lock screen) ===== */
.lockscreen{flex:1 1 auto;min-height:0;background-size:cover;background-position:center;padding:70px 12px 20px;display:flex;flex-direction:column;gap:10px;position:relative}
.lockscreen::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.35));z-index:0}
.lock-clock{text-align:center;color:#fff;z-index:1;margin-bottom:18px}
.lock-clock .date{font-size:16px;font-weight:600;opacity:.95}
.lock-clock .time{font-size:74px;font-weight:600;line-height:1;letter-spacing:-.02em}
.notif{background:rgba(250,250,250,.82);backdrop-filter:blur(20px);border-radius:18px;padding:11px 13px;display:flex;gap:11px;align-items:flex-start;z-index:1;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.notif .app-ic{width:38px;height:38px;border-radius:9px;flex:none;display:grid;place-items:center;color:#fff;font-size:20px;overflow:hidden;object-fit:cover}
.notif .n-body{flex:1;min-width:0}
.notif .n-top{display:flex;justify-content:space-between;gap:8px}
.notif .n-app{font-size:12px;font-weight:700;color:#000;text-transform:none}
.notif .n-time{font-size:12px;color:#3c3c43;opacity:.6}
.notif .n-title{font-weight:700;font-size:14px;color:#000;margin-top:1px}
.notif .n-text{font-size:14px;color:#000;line-height:1.3}

/* ===== Review / testimonial cards ===== */
.review-card{width:400px;background:#fff;border-radius:16px;padding:22px;color:#202124;box-shadow:var(--shadow-lg);font-family:var(--font)}
.review-card.dark{background:#1e1e1e;color:#e8eaed}
.rv-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.rv-avatar{width:44px;height:44px;border-radius:50%;background:#4285f4;color:#fff;display:grid;place-items:center;font-weight:700;font-size:18px;overflow:hidden;object-fit:cover;flex:none}
.rv-name{font-weight:600;font-size:15px}
.rv-meta{font-size:12px;color:#70757a}
.review-card.dark .rv-meta{color:#9aa0a6}
.stars{color:#fbbc04;font-size:18px;letter-spacing:2px}
.stars .off{color:#dadce0}
.review-card.dark .stars .off{color:#5f6368}
.rv-text{font-size:14px;line-height:1.55;margin-top:8px}
.rv-logo{margin-left:auto;font-weight:700;font-size:13px;color:#70757a}
.rv-foot{display:flex;gap:16px;margin-top:14px;font-size:13px;color:#70757a;align-items:center}
.trustpilot .stars{color:#fff;background:#00b67a;display:inline-flex;padding:3px;gap:2px;border-radius:3px;letter-spacing:0}
.trustpilot .stars .box{background:#00b67a;width:22px;height:22px;display:grid;place-items:center}
.appstore-badge{font-size:12px;color:#8e8e93;font-weight:600}

/* ===== Social posts ===== */
.tweet-card{width:420px;background:#fff;color:#0f1419;border:1px solid #eff3f4;border-radius:16px;padding:16px;font-family:var(--font)}
.tweet-card.dark{background:#15202b;color:#e7e9ea;border-color:#38444d}
.tw-head{display:flex;gap:10px;align-items:flex-start}
.tw-avatar{width:48px;height:48px;border-radius:50%;background:#1d9bf0;overflow:hidden;object-fit:cover;flex:none;display:grid;place-items:center;color:#fff;font-weight:700}
.tw-name{font-weight:700;display:flex;align-items:center;gap:4px}
.tw-verify{color:#1d9bf0}
.tw-handle{color:#536471;font-size:14px}
.tweet-card.dark .tw-handle{color:#8b98a5}
.tw-text{font-size:18px;line-height:1.4;margin:10px 0}
.tw-stats{display:flex;gap:24px;color:#536471;font-size:13px;margin-top:12px;border-top:1px solid #eff3f4;padding-top:12px}
.tweet-card.dark .tw-stats{border-color:#38444d;color:#8b98a5}
/* Threads */
.tweet-card.threads{border:1px solid #e5e5e5}
.tweet-card.threads.dark{background:#101010;border-color:#282828}
.th-row{display:flex;gap:12px}
.th-top{display:flex;align-items:center;gap:6px}
.th-time{color:#999;font-size:14px}
.th-menu{margin-left:auto;color:#b0b0b0}
.th-text{font-size:15px;line-height:1.4;margin:3px 0 12px;word-wrap:break-word}
.th-actions{display:flex;gap:20px;color:#0f0f0f;margin-bottom:9px}
.tweet-card.threads.dark .th-text,.tweet-card.threads.dark .tw-name{color:#f3f5f6}
.tweet-card.threads.dark .th-actions{color:#e7e9ea}
.th-meta{color:#999;font-size:14px}
/* Bluesky */
.tweet-card.bluesky.dark{background:#161e27;border-color:#2b3947}
.bsky-logo{margin-left:auto}
.tweet-card.bluesky .tw-stats span{display:inline-flex;align-items:center;gap:6px}
.tweet-card.bluesky.dark .tw-name,.tweet-card.bluesky.dark .tw-text{color:#e7eef4}

/* Reddit */
.tweet-card.reddit{width:440px;border:1px solid #ccc;border-radius:16px}
.tweet-card.reddit.dark{background:#1a1a1b;border-color:#343536;color:#d7dadc}
.rd-top{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:10px}
.rd-sub-av{width:24px;height:24px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:700;flex:none}
.rd-sub{font-weight:700}
.rd-dot{color:#7c7c7c}
.rd-join{margin-left:auto;background:#0079d3;color:#fff;font-weight:700;font-size:13px;padding:5px 16px;border-radius:999px}
.rd-title{font-size:19px;font-weight:600;line-height:1.3;margin-bottom:8px}
.rd-text{font-size:14px;line-height:1.5;margin-bottom:12px}
.rd-actions{display:flex;align-items:center;gap:10px}
.rd-vote{display:inline-flex;align-items:center;gap:8px;background:#f4f5f5;border-radius:999px;padding:6px 12px;font-weight:700;font-size:14px}
.tweet-card.reddit.dark .rd-vote{background:#272729}
.rd-up{color:#ff4500;display:inline-flex}.rd-dn{color:#7c7c7c;display:inline-flex}
.rd-pill{display:inline-flex;align-items:center;background:#f4f5f5;border-radius:999px;padding:6px 12px;font-weight:700;font-size:14px;color:#333}
.tweet-card.reddit.dark .rd-pill{background:#272729;color:#d7dadc}
/* LinkedIn */
.tweet-card.linkedin{width:440px;border:1px solid #e0e0e0;border-radius:10px}
.tweet-card.linkedin.dark{background:#1b1f23;border-color:#38434f;color:#e9e5df}
.li-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.li-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none;display:grid;place-items:center;background:#0a66c2;color:#fff;font-weight:700}
.li-name{font-weight:600;font-size:15px}
.li-1st{color:#666;font-weight:400;font-size:13px}
.li-headline{font-size:12px;color:#666;line-height:1.3}
.tweet-card.linkedin.dark .li-headline,.tweet-card.linkedin.dark .li-time{color:#a9b0b7}
.li-time{font-size:12px;color:#666;display:flex;align-items:center;gap:4px}
.li-menu{color:#666;font-weight:700}
.li-text{font-size:14px;line-height:1.5;margin-bottom:12px}
.li-stats{display:flex;align-items:center;gap:6px;font-size:13px;color:#666;padding-bottom:8px;border-bottom:1px solid #e8e8e8}
.tweet-card.linkedin.dark .li-stats{border-color:#38434f;color:#a9b0b7}
.li-react{font-size:12px;letter-spacing:-3px}
.li-cc{margin-left:auto}
.li-bar{display:flex;justify-content:space-between;padding-top:6px;color:#666;font-size:14px;font-weight:600}
.li-bar span{display:inline-flex;align-items:center;gap:6px}
.tweet-card.linkedin.dark .li-bar{color:#a9b0b7}

.yt-comment,.tt-comment{width:440px;background:#fff;color:#0f0f0f;padding:16px;border-radius:12px;font-family:var(--font);display:flex;gap:12px}
.yt-comment.dark,.tt-comment.dark{background:#0f0f0f;color:#f1f1f1}
.yt-avatar{width:40px;height:40px;border-radius:50%;flex:none;overflow:hidden;object-fit:cover;background:#ff0000;display:grid;place-items:center;color:#fff;font-weight:700}
.yt-author{font-size:13px;font-weight:600}
.yt-time{font-size:12px;color:#606060}
.yt-comment.dark .yt-time{color:#aaa}
.yt-text{font-size:14px;margin:3px 0 8px;line-height:1.4}
.yt-actions{display:flex;gap:18px;color:#606060;font-size:13px;align-items:center}

/* ===== Icon realism (replaces emoji) ===== */
.ic-svg{display:block;flex:none}
.av-init{background:linear-gradient(135deg,#b4b7bd,#9a9da4)!important;color:#fff!important;font-weight:600}
.av-sil{background:#c9ccd1!important;overflow:hidden;padding:0}
.av-sil svg{display:block}
.chat-head .back{display:inline-flex;align-items:center;color:#0a84ff}
.chat-head .actions{display:inline-flex;align-items:center;gap:15px;color:#0a84ff}
.chat-input{gap:9px}
.chat-input .box{flex:1}
.chat-input .ci-ic{display:inline-flex;align-items:center;color:#8e8e93;flex:none}
.chat-input .ci-cam{color:#0a84ff}
.chat-input .ci-blue{color:#0084ff}
.chat-input .ci-send{width:30px;height:30px;border-radius:50%;background:#0a84ff;color:#fff;display:grid;place-items:center;flex:none}
/* per-theme icon colors */
.theme-instagram .chat-input .ci-ic,.theme-instagram .chat-input .ci-cam{color:#0f0f0f}
.theme-instagram.dark .chat-input .ci-ic,.theme-instagram.dark .chat-input .ci-cam{color:#fff}
.theme-snapchat .chat-input .ci-ic{color:#2b2b2b}
.theme-whatsapp .chat-input .ci-ic{color:#54656f}
.theme-whatsapp.dark .chat-input .ci-ic{color:#8696a0}
.phone.dark .chat-input .ci-ic{color:#98989f}
.theme-xdm .chat-head .actions{color:#0f1419}
.theme-xdm.dark .chat-head .actions,.theme-xdm.dark .chat-head .back{color:#e7e9ea}
.theme-messenger .chat-head .actions{color:#0084ff}

/* ===== Group chat ===== */
.bubble-row.them.grp{flex-direction:row;align-items:flex-end;gap:6px;max-width:88%}
.grp-col{display:flex;flex-direction:column;min-width:0}
.grp-av{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:700;margin-bottom:1px}
.grp-av-spacer{width:26px;flex:none}
.sender-name{font-size:12.5px;font-weight:700;margin:0 0 2px 7px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.av-group{overflow:hidden;padding:0;background:#c9ccd1!important}
.theme-whatsapp .bubble-row.them.grp .bubble,.theme-instagram .bubble-row.them.grp .bubble{border-top-left-radius:8px}

/* ===================== TikTok feed + profile ===================== */
.tk-screen{background:#000;color:#fff}
.tk-feed{flex:1 1 auto;min-height:0;position:relative;color:#fff;display:flex;flex-direction:column;
  background-size:cover;background-position:center;background-color:#0a0a0f;
  background-image:radial-gradient(120% 80% at 70% 15%,#4a3b57 0%,transparent 55%),radial-gradient(120% 90% at 20% 90%,#2a3550 0%,transparent 60%),linear-gradient(160deg,#2b2436,#0b0b11)}
.tk-feed.has-media{background-image:none}
.tk-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;background:#000}
.tk-feed>.tk-status{position:relative;z-index:3}
.tk-feed::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.45),transparent 18%,transparent 55%,rgba(0,0,0,.6))}
.tk-top{position:relative;z-index:3;display:flex;justify-content:center;gap:18px;align-items:center;padding:6px 0 2px;font-size:16px;font-weight:600;color:rgba(255,255,255,.65)}
.tk-top .on{color:#fff;font-weight:800;border-bottom:2px solid #fff;padding-bottom:3px}
.tk-top .tk-srch{position:absolute;right:16px;top:4px;color:#fff}
.tk-rail{position:absolute;right:9px;bottom:74px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:16px}
.tk-act{display:flex;flex-direction:column;align-items:center;color:#fff}
.tk-act .ic{filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.tk-act b{font-size:12.5px;font-weight:600;margin-top:3px}
.tk-av-wrap{position:relative;margin-bottom:6px}
.tk-av{width:46px;height:46px;border-radius:50%;border:1.5px solid #fff;object-fit:cover;display:grid;place-items:center;font-size:14px;font-weight:700;color:#fff}
.tk-follow{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);width:19px;height:19px;border-radius:50%;background:#fe2c55;display:grid;place-items:center}
.tk-disc{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#333,#111);display:grid;place-items:center;margin-top:4px;box-shadow:0 0 0 6px rgba(0,0,0,.25);overflow:hidden}
.tk-disc-img{width:22px;height:22px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-size:9px;color:#fff}
.tk-bottom{position:relative;z-index:3;margin-top:auto;padding:12px 82px 8px 14px;color:#fff}
.tk-user{font-weight:800;font-size:16px;margin-bottom:6px;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.tk-cap{font-size:14px;line-height:1.35;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.tk-cap .tag{font-weight:700}
.tk-sound{display:flex;align-items:center;gap:7px;margin-top:9px;font-size:13px}
.tk-sound span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-views{margin-top:8px;font-size:12px;opacity:.85;display:flex;align-items:center;gap:5px}
.tk-progress{position:relative;z-index:3;height:2.5px;background:rgba(255,255,255,.25)}
.tk-progress span{display:block;height:100%;width:36%;background:#fff;border-radius:2px}
.tk-nav{position:relative;z-index:3;display:flex;justify-content:space-around;align-items:center;background:rgba(16,16,20,.9);padding:7px 4px 9px}
.tk-nav>div{display:flex;flex-direction:column;align-items:center;gap:3px;color:rgba(255,255,255,.68);font-size:10px;font-weight:600}
.tk-nav>div.on{color:#fff}
.tk-create{justify-content:center}

.tk-profile{flex:1 1 auto;min-height:0;background:#000;color:#fff;display:flex;flex-direction:column;padding-bottom:12px}
.tk-pf-top{display:flex;align-items:center;justify-content:space-between;padding:6px 14px 8px;color:#fff}
.tk-pf-name{font-weight:700;font-size:17px}
.tk-pf-av{width:96px;height:96px;border-radius:50%;margin:6px auto 10px;overflow:hidden}
.tk-pf-avimg{width:96px;height:96px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-size:34px;font-weight:700;color:#fff}
.tk-pf-handle{text-align:center;font-weight:700;font-size:17px;margin-bottom:14px}
.tk-pf-stats{display:flex;justify-content:center;gap:26px;margin-bottom:14px}
.tk-pf-stats div{text-align:center}
.tk-pf-stats b{display:block;font-size:17px;font-weight:800}
.tk-pf-stats span{font-size:12.5px;color:#9a9a9a}
.tk-pf-btns{display:flex;gap:6px;justify-content:center;padding:0 14px;margin-bottom:14px}
.tk-follow-btn{flex:1;max-width:200px;background:#fe2c55;color:#fff;border:0;border-radius:6px;padding:9px;font-weight:700;font-size:15px}
.tk-msg-btn,.tk-ic-btn{background:#2c2c30;color:#fff;border:0;border-radius:6px;padding:9px 14px;font-weight:700;font-size:15px}
.tk-pf-bio{text-align:center;font-size:13.5px;line-height:1.4;padding:0 24px;margin-bottom:16px;white-space:pre-line}
.tk-pf-tabs{display:flex;border-top:.5px solid #262626}
.tk-pf-tabs span{flex:1;text-align:center;padding:11px 0;color:#6a6a6a;display:flex;justify-content:center}
.tk-pf-tabs .on{color:#fff;box-shadow:inset 0 -2px 0 #fff}
.tk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.tk-tile{position:relative;aspect-ratio:3/4;background-size:cover;background-position:center}
.tk-tile-v{position:absolute;left:5px;bottom:5px;font-size:12px;font-weight:600;display:flex;align-items:center;gap:3px;text-shadow:0 1px 2px rgba(0,0,0,.7)}

/* ===== Faint anti-misuse watermark — MESSAGING CHATS ONLY =====
   Only messaging-app chats (theme-wrap, excluding AI chat) keep a faint
   tiled "FAKE" mark — those are the ones people could misuse to fake a
   real conversation. AI chats, posts, comments, TikTok, reviews and media
   all export completely clean. */
.theme-wrap:not(.theme-aichat) .phone-screen::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:9;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='104'%3E%3Ctext x='75' y='56' font-family='Arial,Helvetica,sans-serif' font-size='17' font-weight='700' fill='%23808080' fill-opacity='0.10' text-anchor='middle' transform='rotate(-30 75 56)'%3EFAKE%3C/text%3E%3C/svg%3E");
  background-repeat:repeat;
}

/* ===== Status-bar polish for realism ===== */
.statusbar{font-size:15px;font-weight:600;letter-spacing:.2px}
.statusbar .sb-time{font-weight:700;font-size:15.5px}
.sb-batt{gap:4px;font-weight:600}
.sb-batt .cap{width:24px;height:12px;border:1px solid currentColor;border-radius:3px;opacity:.85;position:relative}
.sb-batt .cap::after{content:"";position:absolute;right:-3px;top:3.5px;width:2px;height:5px;background:currentColor;border-radius:0 2px 2px 0;opacity:.85}
.sb-batt .lvl{top:1.5px;left:1.5px;bottom:1.5px;border-radius:1.5px}
.chat-head .actions .ic-svg,.chat-head .back .ic-svg{filter:drop-shadow(0 0 0 currentColor)}

@media (max-width:400px){
  .phone{width:min(340px,92vw)}
  .review-card,.tweet-card,.yt-comment,.tt-comment{width:min(420px,92vw)}
}
