/* feature-phones.css: animated Instagram comment-to-DM and DM inquiry
   phones used in the Stur AI and Social comments feature cards.
   Ported from the previous homepage; timings live in stur.js. */
.ctd-phone, .dmi-phone { width: 375px; pointer-events: none; }
/* ── Comment-to-DM animation (fc-comments card) ── */
.ctd-phone .phone {
  width: 375px; height: 812px;
  background: #000;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, 'Inter', sans-serif;

  transform-origin: top center;
}
/* Post */
.ctd-phone .screen-post { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; z-index: 1; overflow: hidden; }
.ctd-phone .post-scroll  { display: flex; flex-direction: column; margin-top: 14px; flex: 1; overflow: hidden; }
.ctd-phone .post-header  { display: flex; align-items: center; padding: 10px 14px; gap: 10px; flex-shrink: 0; }
.ctd-phone .ph-av-wrap   { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
.ctd-phone .ph-av-inner  { position: absolute; inset: 8%; border-radius: 50%; overflow: hidden; }
.ctd-phone .ph-av-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctd-phone .ph-av-ring   { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ctd-phone .ph-username  { flex: 1; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -0.1px; }
.ctd-phone .ph-dots      { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.ctd-phone .post-image   { width: 100%; height: 260px; flex-shrink: 0; overflow: hidden; }
.ctd-phone .post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctd-phone .post-actions { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 0; flex-shrink: 0; }
.ctd-phone .pa-left      { display: flex; align-items: center; gap: 14px; }
.ctd-phone .pa-icon      { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.ctd-phone .pa-icon svg  { display: block; }
.ctd-phone .pa-icon.tapping { animation: ctd-icon-tap 0.32s ease; }
@keyframes ctd-icon-tap { 0%{transform:scale(1)} 35%{transform:scale(0.75)} 70%{transform:scale(1.15)} 100%{transform:scale(1)} }
.ctd-phone .post-meta    { padding: 8px 14px 0; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.ctd-phone .post-likes   { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.4; }
.ctd-phone .post-caption { font-size: 13px; color: #fff; line-height: 18px; }
.ctd-phone .post-caption strong { font-weight: 700; }
.ctd-phone .post-caption .kw   { font-weight: 700; }
.ctd-phone .post-caption .more { color: #737373; }
.ctd-phone .post-view-cmts  { font-size: 13px; color: #737373; transition: color 0.3s; }
.ctd-phone .post-view-cmts.hl { color: #aaa; }
.ctd-phone .post-add-comment { display: flex; align-items: center; gap: 10px; padding: 7px 0 0; }
.ctd-phone .pac-av  { width: 22px; height: 22px; border-radius: 50%; background: #262626; overflow: hidden; flex-shrink: 0; }
.ctd-phone .pac-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctd-phone .pac-ph  { font-size: 13px; color: #737373; }
.ctd-phone .post-timestamp { font-size: 10px; font-weight: 500; color: #737373; letter-spacing: 0.3px; text-transform: uppercase; padding-top: 4px; }
/* Brand logo */
.ctd-phone .brand-logo-av { border-radius: 50%; background: linear-gradient(140deg,#D4A96A 0%,#8B4E2A 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: -apple-system,'Inter',sans-serif; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1; overflow: hidden; }
/* Comments sheet */
.ctd-phone .comments-sheet { position: absolute; bottom: 0; left: 0; right: 0; height: 70%; background: #1c1c1e; border-radius: 14px 14px 0 0; z-index: 10; transform: translateY(100%); transition: transform 0.46s cubic-bezier(0.32,0.72,0,1); display: flex; flex-direction: column; overflow: hidden; }
.ctd-phone .comments-sheet.open { transform: translateY(0); }
.ctd-phone .cs-handle { width: 36px; height: 4px; background: rgba(255,255,255,0.25); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0; }
.ctd-phone .cs-title  { font-size: 14px; font-weight: 600; color: #fff; text-align: center; line-height: 20px; padding: 10px 0 12px; border-bottom: 0.5px solid rgba(255,255,255,0.12); flex-shrink: 0; }
.ctd-phone .cs-list   { flex: 1; padding: 16px 16px 0; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.ctd-phone .ci { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; opacity: 0; transform: translateY(8px); transition: opacity 0.36s ease, transform 0.36s ease; }
.ctd-phone .ci.show { opacity: 1; transform: translateY(0); }
.ctd-phone .ci-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #3a3a3c; }
.ctd-phone .ci-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctd-phone .ci-body  { flex: 1; }
.ctd-phone .ci-text  { font-size: 13px; color: #fff; line-height: 18px; }
.ctd-phone .ci-text strong { font-weight: 700; }
.ctd-phone .ci-sub   { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ctd-phone .ci-when  { font-size: 11px; color: #737373; }
.ctd-phone .ci-reply { font-size: 11px; font-weight: 600; color: #737373; }
.ctd-phone .ci-likes { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.ctd-phone .ci-likes svg { display: block; }
.ctd-phone .ci-indent { padding-left: 42px; }
.ctd-phone .cs-input-bar { padding: 10px 16px 20px; border-top: 0.5px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ctd-phone .csi-field { flex: 1; height: 36px; background: #2c2c2e; border-radius: 18px; display: flex; align-items: center; padding: 0 14px; position: relative; overflow: hidden; }
.ctd-phone .csi-ph    { font-size: 13px; color: rgba(255,255,255,0.25); position: absolute; transition: opacity 0.2s; white-space: nowrap; }
.ctd-phone .csi-typed { font-size: 13px; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; max-width: 0; transition: max-width 0.55s steps(5,end); }
.ctd-phone .csi-typed.reveal { max-width: 160px; }
.ctd-phone .csi-cursor { display: inline-block; width: 1.5px; height: 13px; background: rgba(255,255,255,0.8); vertical-align: middle; opacity: 0; animation: ctd-blink 1s step-end infinite; }
.ctd-phone .csi-cursor.on { opacity: 1; }
@keyframes ctd-blink { 0%,100%{opacity:1} 50%{opacity:0} }
/* DM screen */
.ctd-phone .screen-dm { position: absolute; inset: 0; background: #000; z-index: 20; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.42s ease; pointer-events: none; }
.ctd-phone .screen-dm.show { opacity: 1; pointer-events: auto; }
.ctd-phone .dm-header { display: flex; align-items: center; padding: 24px 16px 12px; border-bottom: 0.5px solid rgba(255,255,255,0.12); flex-shrink: 0; gap: 8px; }
.ctd-phone .dm-av-wrap { position: relative; flex-shrink: 0; }
.ctd-phone .dm-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; }
.ctd-phone .dm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctd-phone .dm-active { width: 10px; height: 10px; background: #31d158; border-radius: 50%; border: 2px solid #000; position: absolute; bottom: 0; right: 0; }
.ctd-phone .dm-header-info { flex: 1; }
.ctd-phone .dm-header-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 17px; }
.ctd-phone .dm-header-sub  { font-size: 11px; color: #737373; line-height: 14px; }
.ctd-phone .dm-header-actions { display: flex; align-items: center; gap: 14px; }
.ctd-phone .dm-header-actions svg { display: block; }
.ctd-phone .dm-msgs { flex: 1; position: relative; overflow: hidden; }
.ctd-phone .typing-row { position: absolute; top: 12px; left: 20px; display: flex; align-items: flex-start; gap: 8px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.ctd-phone .typing-row.show { opacity: 1; }
.ctd-phone .t-bubble { background: #262626; border-radius: 18px 18px 18px 4px; padding: 10px 14px; display: flex; align-items: center; gap: 4px; }
.ctd-phone .t-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); animation: ctd-tb 1.3s ease-in-out infinite; }
.ctd-phone .t-dot:nth-child(2) { animation-delay: 0.18s; }
.ctd-phone .t-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes ctd-tb { 0%,55%,100%{transform:translateY(0);opacity:0.35} 28%{transform:translateY(-5px);opacity:1} }
.ctd-phone .dm-bubble-row { position: absolute; top: 12px; left: 20px; display: flex; align-items: flex-end; gap: 8px; opacity: 0; transform: translateY(-12px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.ctd-phone .dm-bubble-row.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ctd-phone .dm-card { background: #262626; border-radius: 18px 18px 18px 4px; padding: 12px 14px; max-width: 248px; display: flex; flex-direction: column; gap: 10px; }
.ctd-phone .dm-card-text { font-size: 13px; color: #fff; line-height: 18px; }
.ctd-phone .dm-shop-btn { background: #363636; border-radius: 10px; padding: 10px 0; text-align: center; font-size: 13px; font-weight: 600; color: #fff; opacity: 0; transition: opacity 0.35s ease; }
.ctd-phone .dm-shop-btn.show { opacity: 1; }
.ctd-phone .dm-input-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px 28px; flex-shrink: 0; }
.ctd-phone .dmi-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ctd-phone .dmi-icon svg { display: block; }
.ctd-phone .dmi-field { flex: 1; height: 38px; background: #1c1c1e; border: 1px solid #3a3a3c; border-radius: 20px; display: flex; align-items: center; padding: 0 14px; }
.ctd-phone .dmi-ph   { font-size: 14px; color: #555; }
.ctd-phone .dmi-send { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ctd-phone .dmi-send svg { display: block; }

/* ── DM Inquiry animation (fc-dm card) ── */
.dmi-phone .phone {
  width: 375px; height: 812px;
  background: #000;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, 'Inter', sans-serif;

  transform-origin: top left;
}
.dmi-phone .dm-screen { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; }
.dmi-phone .dm-hdr { display: flex; align-items: center; padding: 20px 12px 10px; gap: 8px; flex-shrink: 0; }
.dmi-phone .dm-hdr-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dmi-phone .dm-hdr-back svg { display: block; }
.dmi-phone .dm-hdr-av-wrap { position: relative; flex-shrink: 0; }
.dmi-phone .dm-hdr-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #3a3a3c; }
.dmi-phone .dm-hdr-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmi-phone .dm-hdr-online { width: 10px; height: 10px; background: #31d158; border-radius: 50%; border: 2px solid #000; position: absolute; bottom: 0; right: 0; }
.dmi-phone .dm-hdr-info { flex: 1; }
.dmi-phone .dm-hdr-name { font-size: 14px; font-weight: 600; color: #fff; line-height: 18px; letter-spacing: -0.1px; }
.dmi-phone .dm-hdr-sub  { font-size: 12px; color: #737373; line-height: 16px; }
.dmi-phone .dm-hdr-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.dmi-phone .dm-hdr-actions svg { display: block; }
.dmi-phone .dm-msgs-wrap { flex: 1; padding: 12px 20px 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.dmi-phone .dmsg { opacity: 0; transform: translateY(8px); transition: opacity 0.36s ease, transform 0.36s ease; }
.dmi-phone .dmsg.show { opacity: 1; transform: translateY(0); }
.dmi-phone .dmsg-gap { margin-top: 10px; }
.dmi-phone .in-thread-grp { display: flex; flex-direction: column; padding-left: 24px; }
.dmi-phone .in-photo-row { display: flex; align-items: stretch; gap: 8px; }
.dmi-phone .thread-ln { width: 2px; background: rgba(255,255,255,0.15); border-radius: 1px; flex-shrink: 0; }
.dmi-phone .in-photo { width: 130px; height: 173px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.dmi-phone .in-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmi-phone .in-txt-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 4px; }
.dmi-phone .in-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #3a3a3c; }
.dmi-phone .in-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmi-phone .bbl-in { background: #262626; border-radius: 18px 18px 18px 4px; padding: 9px 14px; max-width: 230px; font-size: 14px; font-weight: 400; color: #fff; line-height: 20px; letter-spacing: 0.1px; }
.dmi-phone .msg-out { display: flex; justify-content: flex-end; padding-right: 2px; }
.dmi-phone .bbl-out-sm { background: #5433eb; border-radius: 18px 18px 4px 18px; padding: 9px 16px; font-size: 14px; font-weight: 400; color: #fff; line-height: 20px; letter-spacing: 0.1px; white-space: nowrap; }
.dmi-phone .bbl-out-card { background: #5433eb; border-radius: 18px 4px 18px 18px; padding: 12px 14px; max-width: 226px; display: flex; flex-direction: column; gap: 9px; }
.dmi-phone .bbl-out-card p { font-size: 14px; font-weight: 400; color: #fff; line-height: 20px; letter-spacing: 0.1px; text-align: left; }
.dmi-phone .dmi-shop-btn { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 9px 0; font-size: 14px; font-weight: 400; color: #fff; text-align: center; opacity: 0; transition: opacity 0.35s ease; letter-spacing: 0.1px; }
.dmi-phone .dmi-shop-btn.show { opacity: 1; }
.dmi-phone .dmi-delivery { display: flex; justify-content: flex-end; padding-right: 4px; padding-top: 2px; opacity: 0; transition: opacity 0.3s ease; }
.dmi-phone .dmi-delivery.show { opacity: 1; }
.dmi-phone .dmi-delivery span { font-size: 11px; color: #737373; letter-spacing: 0.1px; }
.dmi-phone .dmi-input-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 28px; flex-shrink: 0; }
.dmi-phone .dmi-icon2 { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dmi-phone .dmi-icon2 svg { display: block; }
.dmi-phone .dmi-field2 { flex: 1; height: 38px; background: transparent; border: 1.5px solid #363636; border-radius: 20px; display: flex; align-items: center; padding: 0 14px; }
.dmi-phone .dmi-ph2 { font-size: 14px; color: #555; letter-spacing: 0.1px; }
.dmi-phone .dmi-right2 { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.dmi-phone .dmi-right2 svg { display: block; }

/* Outline so the black phone screens read against the dark feature cards */
.ctd-phone .phone, .dmi-phone .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 8px rgba(255, 255, 255, 0.04), 0 30px 60px rgba(0, 0, 0, 0.5); }
