
:root{
  --dm-pink:#f93d97;
  --dm-pink-deep:#ce2e7d;
  --dm-purple:#7c49f5;
  --dm-ink:#25202a;
  --dm-soft:#fdeef6;
  --dm-soft-2:#fff6fb;
  --dm-border:#f1d8e5;
  --dm-green:#4a9b68;
}
.dm-page-wrap{background:#f8f8f8;padding:24px 12px}
.dm-page-wrap,.dm-page-wrap *{box-sizing:border-box}
.dm-app-shell{max-width:430px;margin:0 auto;background:#fff;border:1px solid #eadbe3;border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(108,37,70,.08);font-family:system-ui,-apple-system,"Noto Sans Devanagari",sans-serif;color:var(--dm-ink)}
.dm-topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 14px;background:#fff5fa;border-bottom:1px solid #f3d9e8}
.dm-brand img{height:44px;max-width:210px;width:auto;display:block}
.dm-menu-btn{width:48px;height:48px;border:0;border-radius:14px;background:#fce8f2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;cursor:pointer}
.dm-menu-btn span{display:block;width:18px;height:2px;background:#6f5a67;border-radius:10px}
.dm-hero{background:linear-gradient(180deg,#fcedf6 0%, #fbe8f3 100%);padding:26px 0 24px;overflow:hidden}
.dm-hero-inner{text-align:center;padding:0 16px}
.dm-match{margin:0 0 6px;color:#7c4d68;font-size:15px;font-weight:600}
.dm-hero h1{margin:0 0 18px;font-size:44px;line-height:1;color:#bb2781;letter-spacing:-1px;font-weight:800}
.dm-phone-stage{position:relative;height:360px;display:flex;align-items:flex-start;justify-content:center;gap:16px;padding-top:10px}
.dm-phone{width:162px;background:#fff;border:6px solid #322938;border-radius:32px;overflow:hidden;box-shadow:0 10px 20px rgba(0,0,0,.12);position:relative}
.dm-phone::before{content:"";position:absolute;top:-1px;left:50%;transform:translateX(-50%);width:76px;height:16px;background:#322938;border-radius:0 0 14px 14px;z-index:2}
.dm-phone-left{transform:rotate(-9deg);margin-top:24px}
.dm-phone-right{transform:rotate(7deg);margin-top:26px}
.dm-phone-header{padding:20px 12px 8px;text-align:left;font-size:12px;font-weight:700;color:#d13282;background:#fff}
.dm-phone-image{height:190px;background:#eee}
.dm-phone-image img{width:100%;height:100%;object-fit:cover;display:block}
.dm-phone-info{padding:10px 12px 16px;text-align:left;background:#fff}
.dm-phone-info strong{display:block;font-size:13px;margin-bottom:6px;color:#444}
.dm-phone-info p{margin:0;font-size:12px;line-height:1.35;color:#cb5a92;background:#fbeaf3;padding:10px;border-radius:14px}
.dm-center-heart{position:absolute;left:50%;top:188px;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--dm-pink),#ff6292);color:#fff;font-size:34px;font-weight:700;border:6px solid #fff;box-shadow:0 8px 20px rgba(249,61,151,.32);z-index:4}
.dm-recommendations{padding:24px 16px 12px;background:#fff}
.dm-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
.dm-section-head h2{margin:0 0 8px;font-size:24px;line-height:1.15}
.dm-section-head p{margin:0;color:#6a6870;font-size:14px;max-width:230px;line-height:1.45}
.dm-section-head a{color:#e03e8a;text-decoration:none;font-weight:600;white-space:nowrap;margin-top:8px}
.dm-profile-list{display:flex;flex-direction:column;gap:18px}
.dm-profile-card{border:1px solid #f0d2e2;background:linear-gradient(180deg,#fff9fc 0%,#fff4f8 100%);border-radius:24px;padding:18px 16px;display:flex;justify-content:space-between;gap:14px;align-items:center}
.dm-profile-left{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.dm-avatar-wrap{position:relative;flex:0 0 auto}
.dm-avatar-wrap img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.dm-online-dot{position:absolute;right:2px;bottom:5px;width:12px;height:12px;border-radius:50%;background:#1ec45a;border:2px solid #fff}
.dm-profile-meta{min-width:0}
.dm-profile-meta h3{margin:0 0 5px;font-size:19px;line-height:1.2;color:#2c2730;font-weight:700}
.dm-profile-meta h3 small{font-size:14px;color:#6a6770;font-weight:500}
.dm-verify{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#3490ff;color:#fff;font-size:11px;vertical-align:middle}
.dm-profile-meta p{margin:0 0 10px;color:#58545d;font-size:14px;line-height:1.35}
.dm-tags{display:flex;flex-wrap:wrap;gap:8px}
.dm-tags span{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 12px;border:1px solid #e4dbe0;background:#fff;border-radius:999px;font-size:13px;color:#5f5862}
.dm-tags .dm-plus{background:#ff9d38;border-color:#ff9d38;color:#fff;font-weight:700;padding:0 10px}
.dm-profile-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.dm-heart-btn{width:52px;height:52px;border-radius:50%;border:0;background:#fff;color:#e74c96;font-size:28px;box-shadow:0 8px 24px rgba(132,96,120,.08);cursor:pointer}
.dm-chat-btn{border:0;background:linear-gradient(135deg,#f93d97,#ff3b77);color:#fff;border-radius:14px;padding:15px 18px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 12px 26px rgba(249,61,151,.28);white-space:nowrap}
.dm-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:18px 24px;padding:28px 20px;background:var(--dm-green)}
.dm-footer-links a{color:#fff;text-decoration:none;font-size:14px}
.dm-footer-note{background:#faebf3;color:#776674;padding:14px 14px 16px;text-align:center;font-size:13px;border-top:1px solid #efd2e2}

.dm-chat-overlay{position:fixed;inset:0;background:rgba(34,19,32,.65);z-index:999999;display:none;overflow:auto;padding:30px 12px}
.dm-chat-overlay.active{display:block}
.dm-chat-screen{max-width:430px;margin:0 auto;background:#fff;border:1px solid #eddbe5;border-radius:24px;overflow:hidden;min-height:80vh}
.dm-chat-close{display:block;width:100%;text-align:left;padding:18px 22px;border:0;background:#fff;color:#7f6c7b;font-size:16px;cursor:pointer;border-bottom:1px solid #f0e1e9}
.dm-chat-box{padding:22px}
.dm-chat-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:24px}
.dm-chat-head img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:5px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.dm-chat-head span{display:block;font-size:13px;letter-spacing:3px;text-transform:uppercase;color:#8b56e7;margin-bottom:8px}
.dm-chat-head h2{margin:0 0 10px;font-size:20px;line-height:1.2;color:#111}
.dm-chat-head p{margin:0;color:#67616e;font-size:14px;line-height:1.5}
.dm-price-card{background:linear-gradient(135deg,#fdf0f7,#f4efff);border-radius:24px;padding:28px 18px;text-align:center;margin-bottom:22px}
.dm-price-label{font-size:18px;color:#6c6870;margin-bottom:12px}
.dm-price-value{font-size:62px;font-weight:800;line-height:1;color:#34205f;margin-bottom:16px}
.dm-price-time{font-size:16px;color:#6d6675;margin-bottom:14px}
.dm-price-card p{margin:0;color:#5e5665;font-size:15px}
.dm-pay-unlock{width:100%;border:0;border-radius:18px;padding:18px 20px;font-size:18px;font-weight:700;color:#fff;background:linear-gradient(90deg,var(--dm-pink),var(--dm-purple));cursor:pointer;box-shadow:0 14px 30px rgba(125,73,245,.2)}
.dm-chat-note{margin-top:16px;text-align:center;color:#6e6872;font-size:14px;line-height:1.6}
.dm-chat-demo{margin-top:14px;text-align:center;color:#826d7c;font-size:14px}
.dm-chat-unlocked{display:none;margin-top:22px;padding-top:20px;border-top:1px solid #f1e4eb;text-align:center}
.dm-chat-unlocked h3{margin:0 0 8px;font-size:22px;color:#2f2144}
.dm-chat-unlocked p{margin:0 0 16px;color:#6d6574}
.dm-compose-row{display:flex;gap:10px}
.dm-compose-row input{flex:1;border:1px solid #e6dbe2;border-radius:14px;padding:14px 14px;font-size:15px;outline:none}
.dm-compose-row button{border:0;background:linear-gradient(135deg,#f93d97,#ff3b77);color:#fff;border-radius:14px;padding:0 16px;font-weight:700;cursor:pointer}

.dm-bottom-popup{position:fixed;left:50%;bottom:-180px;transform:translateX(-50%);width:min(420px,calc(100% - 20px));background:#fff;border:1px solid #f1d6e4;border-radius:20px;box-shadow:0 22px 50px rgba(86,28,55,.23);padding:12px 14px;display:flex;align-items:center;gap:12px;z-index:999990;transition:bottom .45s ease;cursor:pointer}
.dm-bottom-popup.show{bottom:14px}
.dm-bottom-popup img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.dm-popup-texts{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.dm-popup-texts strong{font-size:15px;color:#2e2632}
.dm-popup-texts span{font-size:13px;color:#6f6571;line-height:1.3}
.dm-bottom-popup b{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f93d97,#ff3b77);color:#fff;padding:12px 14px;border-radius:12px;font-size:14px;white-space:nowrap}
.dm-popup-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:22px;color:#8b7884;cursor:pointer;line-height:1}

@media (max-width: 430px){
  .dm-page-wrap{padding:0;background:#f8f8f8}
  .dm-app-shell{max-width:100%;border-radius:0;border-left:0;border-right:0}
}
@media (max-width: 390px){
  .dm-phone-stage{gap:6px;height:320px}
  .dm-phone{width:144px}
  .dm-phone-image{height:170px}
  .dm-hero h1{font-size:38px}
  .dm-profile-card{padding:16px 12px;gap:10px}
  .dm-heart-btn{width:44px;height:44px;font-size:24px}
  .dm-chat-btn{padding:13px 14px;font-size:14px}
}


/* === Dilmile v2.1 motion layer === */
.dm-phone-left{
  animation: dmFloatLeft 4.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.dm-phone-right{
  animation: dmFloatRight 5.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.dm-center-heart{
  animation: dmHeartPulse 1.7s ease-in-out infinite, dmHeartFloat 4s ease-in-out infinite;
}
.dm-hero::before,
.dm-hero::after{
  content:"♥";
  position:absolute;
  color:#f6a6c9;
  opacity:.65;
  pointer-events:none;
  animation:dmTinyHeart 5s ease-in-out infinite;
}
.dm-hero{position:relative}
.dm-hero::before{left:10%;top:42%;font-size:22px}
.dm-hero::after{right:9%;top:48%;font-size:26px;animation-delay:1.2s}
.dm-profile-card{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dm-profile-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(134,51,92,.11);
  border-color:#edbfd7;
}
.dm-online-dot{
  animation:dmOnlinePulse 1.8s ease-out infinite;
}
.dm-chat-btn{
  position:relative;
  overflow:hidden;
}
.dm-chat-btn::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-120%);
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);
  animation:dmButtonShine 3.8s ease-in-out infinite;
}
.dm-bottom-popup.show{
  animation:dmPopupNudge 3.2s ease-in-out infinite;
}
.dm-bottom-popup img{
  box-shadow:0 0 0 0 rgba(30,196,90,.35);
  animation:dmAvatarPulse 2s ease-out infinite;
}
.dm-bottom-popup b{
  animation:dmCtaPulse 2s ease-in-out infinite;
}

@keyframes dmFloatLeft{
  0%,100%{transform:rotate(-9deg) translateY(0)}
  50%{transform:rotate(-7deg) translateY(-10px)}
}
@keyframes dmFloatRight{
  0%,100%{transform:rotate(7deg) translateY(0)}
  50%{transform:rotate(5deg) translateY(-12px)}
}
@keyframes dmHeartPulse{
  0%,100%{scale:1}
  50%{scale:1.12}
}
@keyframes dmHeartFloat{
  0%,100%{translate:-50% -50%}
  50%{translate:-50% calc(-50% - 8px)}
}
@keyframes dmTinyHeart{
  0%,100%{transform:translateY(0) rotate(-8deg);opacity:.45}
  50%{transform:translateY(-14px) rotate(8deg);opacity:.85}
}
@keyframes dmOnlinePulse{
  0%{box-shadow:0 0 0 0 rgba(30,196,90,.5)}
  70%{box-shadow:0 0 0 7px rgba(30,196,90,0)}
  100%{box-shadow:0 0 0 0 rgba(30,196,90,0)}
}
@keyframes dmButtonShine{
  0%,62%{transform:translateX(-120%)}
  82%,100%{transform:translateX(120%)}
}
@keyframes dmPopupNudge{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-4px)}
}
@keyframes dmAvatarPulse{
  0%{box-shadow:0 0 0 0 rgba(30,196,90,.35)}
  70%{box-shadow:0 0 0 9px rgba(30,196,90,0)}
  100%{box-shadow:0 0 0 0 rgba(30,196,90,0)}
}
@keyframes dmCtaPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.04)}
}

@media (prefers-reduced-motion: reduce){
  .dm-phone-left,.dm-phone-right,.dm-center-heart,.dm-hero::before,.dm-hero::after,
  .dm-online-dot,.dm-chat-btn::after,.dm-bottom-popup.show,.dm-bottom-popup img,.dm-bottom-popup b{
    animation:none!important;
  }
}

/* v2.3 preview-photo tuning */
.dm-phone-image img{object-position:center top}
.dm-profile-meta h3,.dm-profile-meta p,.dm-tags span,.dm-chat-btn,.dm-section-head,.dm-footer-links{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}


/* === V2.5 Premium animated phone hero === */
.dm-phone-stage{
  perspective:1100px;
  transform-style:preserve-3d;
  isolation:isolate;
}
.dm-phone{
  overflow:visible;
  background:linear-gradient(180deg,#fff 0%,#fff9fc 100%);
  border:5px solid #241b2b;
  box-shadow:
    0 22px 35px rgba(65,28,49,.22),
    0 4px 9px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(255,255,255,.35);
  backdrop-filter:blur(6px);
  will-change:transform,filter;
}
.dm-phone::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:38px;
  background:linear-gradient(135deg,rgba(249,61,151,.22),rgba(124,73,245,.14),rgba(255,255,255,0));
  filter:blur(18px);
  z-index:-1;
  opacity:.75;
}
.dm-phone-left{
  animation:dmPhoneLeftPremium 6.2s cubic-bezier(.45,.05,.18,.98) infinite;
}
.dm-phone-right{
  animation:dmPhoneRightPremium 6.8s cubic-bezier(.45,.05,.18,.98) infinite;
}
.dm-phone-left:hover,
.dm-phone-right:hover{
  animation-play-state:paused;
  filter:brightness(1.035) saturate(1.06);
}
.dm-center-heart{
  box-shadow:
    0 12px 26px rgba(249,61,151,.32),
    0 0 0 8px rgba(255,255,255,.7),
    0 0 36px rgba(249,61,151,.28);
  animation:dmPremiumHeart 2.1s ease-in-out infinite;
}
.dm-center-heart::before,
.dm-center-heart::after{
  content:"♥";
  position:absolute;
  color:#ff87bb;
  font-size:15px;
  opacity:0;
  pointer-events:none;
}
.dm-center-heart::before{
  left:-18px; top:4px;
  animation:dmHeartSpark 3.8s ease-in-out infinite;
}
.dm-center-heart::after{
  right:-18px; bottom:2px;
  animation:dmHeartSpark 3.8s ease-in-out 1.6s infinite;
}

.dm-phone-stage::before,
.dm-phone-stage::after{
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  filter:blur(25px);
  opacity:.55;
  z-index:-2;
}
.dm-phone-stage::before{
  width:150px;height:150px;
  left:8%;top:50px;
  background:radial-gradient(circle,rgba(249,61,151,.24),rgba(249,61,151,0) 70%);
  animation:dmGlowDriftA 7s ease-in-out infinite;
}
.dm-phone-stage::after{
  width:180px;height:180px;
  right:3%;bottom:20px;
  background:radial-gradient(circle,rgba(124,73,245,.18),rgba(124,73,245,0) 70%);
  animation:dmGlowDriftB 8s ease-in-out infinite;
}

.dm-phone-image{
  position:relative;
  overflow:hidden;
}
.dm-phone-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,transparent 15%,rgba(255,255,255,.18) 38%,transparent 62%);
  transform:translateX(-120%);
  animation:dmPhoneSheen 5.4s ease-in-out infinite;
}
.dm-phone-right .dm-phone-image::after{animation-delay:1.6s}

@keyframes dmPhoneLeftPremium{
  0%{transform:rotate(-9deg) translate3d(0,0,0) rotateY(0deg)}
  24%{transform:rotate(-7.5deg) translate3d(-3px,-9px,18px) rotateY(2deg)}
  50%{transform:rotate(-10deg) translate3d(2px,-16px,30px) rotateY(-2deg)}
  76%{transform:rotate(-8deg) translate3d(4px,-7px,16px) rotateY(1.5deg)}
  100%{transform:rotate(-9deg) translate3d(0,0,0) rotateY(0deg)}
}
@keyframes dmPhoneRightPremium{
  0%{transform:rotate(7deg) translate3d(0,0,0) rotateY(0deg)}
  25%{transform:rotate(5.5deg) translate3d(4px,-11px,22px) rotateY(-2deg)}
  52%{transform:rotate(8.5deg) translate3d(-2px,-18px,34px) rotateY(2.5deg)}
  78%{transform:rotate(6deg) translate3d(-4px,-8px,18px) rotateY(-1deg)}
  100%{transform:rotate(7deg) translate3d(0,0,0) rotateY(0deg)}
}
@keyframes dmPremiumHeart{
  0%,100%{transform:translate(-50%,-50%) scale(1) rotate(0deg)}
  25%{transform:translate(-50%,-56%) scale(1.08) rotate(-2deg)}
  50%{transform:translate(-50%,-62%) scale(1.14) rotate(1.5deg)}
  75%{transform:translate(-50%,-56%) scale(1.07) rotate(-1deg)}
}
@keyframes dmHeartSpark{
  0%{transform:translateY(8px) scale(.7);opacity:0}
  22%{opacity:.8}
  60%{opacity:.35}
  100%{transform:translateY(-28px) scale(1.25) rotate(12deg);opacity:0}
}
@keyframes dmGlowDriftA{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(24px,12px) scale(1.14)}
}
@keyframes dmGlowDriftB{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(-28px,-12px) scale(1.1)}
}
@keyframes dmPhoneSheen{
  0%,58%{transform:translateX(-130%)}
  78%,100%{transform:translateX(130%)}
}

/* tiny floating hearts around the phones */
.dm-hero-inner{position:relative}
.dm-hero-inner::before,
.dm-hero-inner::after{
  content:"♥";
  position:absolute;
  color:#f68ab9;
  opacity:.6;
  z-index:2;
  pointer-events:none;
}
.dm-hero-inner::before{
  left:7%;top:145px;font-size:18px;
  animation:dmMiniFloatOne 5.5s ease-in-out infinite;
}
.dm-hero-inner::after{
  right:8%;top:165px;font-size:22px;
  animation:dmMiniFloatTwo 6s ease-in-out infinite;
}
@keyframes dmMiniFloatOne{
  0%,100%{transform:translateY(0) rotate(-8deg);opacity:.42}
  50%{transform:translateY(-22px) rotate(7deg);opacity:.8}
}
@keyframes dmMiniFloatTwo{
  0%,100%{transform:translateY(0) rotate(8deg);opacity:.35}
  50%{transform:translateY(-28px) rotate(-9deg);opacity:.75}
}

@media (max-width:390px){
  .dm-phone-left{animation-name:dmPhoneLeftPremiumMobile}
  .dm-phone-right{animation-name:dmPhoneRightPremiumMobile}
}
@keyframes dmPhoneLeftPremiumMobile{
  0%,100%{transform:rotate(-8deg) translateY(0)}
  50%{transform:rotate(-9deg) translateY(-10px)}
}
@keyframes dmPhoneRightPremiumMobile{
  0%,100%{transform:rotate(7deg) translateY(0)}
  50%{transform:rotate(6deg) translateY(-12px)}
}

@media (prefers-reduced-motion: reduce){
  .dm-phone-left,.dm-phone-right,.dm-center-heart,
  .dm-center-heart::before,.dm-center-heart::after,
  .dm-phone-stage::before,.dm-phone-stage::after,
  .dm-phone-image::after,.dm-hero-inner::before,.dm-hero-inner::after{
    animation:none!important;
  }
}


/* === V2.6 Realistic phone hardware === */
.dm-phone{
  width:166px;
  padding:5px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:34px;
  background:
    linear-gradient(145deg,#5f5666 0%,#18151b 18%,#09080b 52%,#2b2630 85%,#6e6475 100%);
  box-shadow:
    0 26px 45px rgba(40,18,31,.34),
    0 8px 15px rgba(0,0,0,.28),
    inset 1px 1px 1px rgba(255,255,255,.34),
    inset -1px -1px 1px rgba(0,0,0,.55);
  overflow:visible;
}
.dm-phone::before{
  display:none;
}
.dm-phone::after{
  inset:-14px;
  border-radius:44px;
  opacity:.58;
}
.dm-device-screen{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
  min-height:318px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    inset 0 0 14px rgba(0,0,0,.08);
}
.dm-statusbar{
  height:26px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding:0 12px 4px;
  font-size:8px;
  font-weight:700;
  color:#1c1820;
  background:#fff;
  position:relative;
  z-index:3;
}
.dm-statusbar span:last-child{
  letter-spacing:1px;
  font-size:6px;
}
.dm-dynamic-island{
  position:absolute;
  top:5px;
  left:50%;
  transform:translateX(-50%);
  width:58px;
  height:15px;
  border-radius:999px;
  background:#050505;
  z-index:5;
  box-shadow:inset 0 -1px 2px rgba(255,255,255,.08);
}
.dm-phone-header{
  position:relative;
  z-index:2;
  padding:8px 11px 7px;
  text-align:left;
  font-size:11px;
  font-weight:800;
  color:#d13282;
  background:#fff;
  border-bottom:1px solid #f3e6ed;
}
.dm-phone-image{
  height:185px;
  background:#f4eef2;
  overflow:hidden;
  position:relative;
}
.dm-phone-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
  display:block;
  filter:saturate(1.02) contrast(1.01);
}
.dm-phone-image::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 28%,transparent 72%,rgba(0,0,0,.035));
  z-index:2;
  pointer-events:none;
}
.dm-phone-info{
  position:relative;
  z-index:2;
  padding:9px 11px 17px;
  text-align:left;
  background:#fff;
  min-height:86px;
}
.dm-phone-info strong{
  display:block;
  font-size:12px;
  line-height:1.15;
  margin-bottom:5px;
  color:#28222b;
}
.dm-phone-info p{
  margin:0;
  font-size:10.5px;
  line-height:1.28;
  color:#c64e88;
  background:linear-gradient(180deg,#fff4f8,#fdebf3);
  padding:8px 9px;
  border-radius:12px;
}
.dm-home-indicator{
  position:absolute;
  left:50%;
  bottom:5px;
  transform:translateX(-50%);
  width:55px;
  height:3px;
  border-radius:999px;
  background:#161317;
  z-index:4;
  opacity:.88;
}
.dm-screen-glass{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:6;
  border-radius:28px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 -18px 30px rgba(255,255,255,.025);
}
.dm-screen-glass::before{
  content:"";
  position:absolute;
  width:55%;
  height:140%;
  top:-35%;
  left:-30%;
  transform:rotate(19deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  filter:blur(1px);
  opacity:.42;
}
.dm-side-btn,
.dm-power-btn{
  position:absolute;
  display:block;
  background:linear-gradient(180deg,#4b4550,#17141a);
  border-radius:3px;
  box-shadow:inset 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(0,0,0,.4);
  z-index:-1;
}
.dm-side-btn{left:-3px;width:3px;height:28px}
.dm-side-btn-a{top:72px}
.dm-side-btn-b{top:108px;height:42px}
.dm-power-btn{right:-3px;top:92px;width:3px;height:52px}
.dm-phone-left{
  transform-style:preserve-3d;
}
.dm-phone-right{
  transform-style:preserve-3d;
}
.dm-phone-left:hover,
.dm-phone-right:hover{
  filter:brightness(1.02) saturate(1.03);
}
.dm-phone-stage{
  padding-left:2px;
  padding-right:2px;
}
@media(max-width:390px){
  .dm-phone{width:146px;border-radius:31px;padding:4px}
  .dm-device-screen{border-radius:25px;min-height:292px}
  .dm-phone-image{height:167px}
  .dm-statusbar{height:23px}
  .dm-dynamic-island{width:52px;height:14px}
  .dm-phone-info{min-height:78px;padding:8px 9px 15px}
  .dm-phone-info p{font-size:9.6px}
  .dm-screen-glass{border-radius:25px}
}


/* === V2.7 profile/favorite polish === */

/* Keep favorite control perfectly centered */
.dm-heart-btn{
  width:52px;
  height:52px;
  min-width:52px;
  min-height:52px;
  padding:0;
  border-radius:50%;
  border:1px solid #f3d7e4;
  background:#fff;
  color:#e64c96;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:0;
  box-shadow:0 8px 22px rgba(124,55,91,.08);
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  outline:none;
  -webkit-tap-highlight-color:transparent;
}
.dm-heart-btn::before{
  content:"♡";
  display:block;
  font-size:30px;
  line-height:1;
  font-family:Arial, sans-serif;
  transform:translateY(-1px);
}
.dm-heart-btn:hover{
  transform:translateY(-1px) scale(1.04);
  border-color:#f1b9d4;
  box-shadow:0 10px 24px rgba(230,76,150,.14);
}
.dm-heart-btn:focus,
.dm-heart-btn:active{
  outline:none;
  box-shadow:0 10px 24px rgba(230,76,150,.16);
  background:#fff;
  color:#e64c96;
}
.dm-heart-btn.is-favorite{
  background:linear-gradient(135deg,#ff4f9f,#ef2f7d);
  color:#fff;
  border-color:#ef2f7d;
  box-shadow:0 10px 26px rgba(239,47,125,.28);
}
.dm-heart-btn.is-favorite::before{
  content:"♥";
  color:#fff;
  transform:translateY(-1px) scale(1.02);
}
.dm-heart-btn.is-favorite:hover{
  background:linear-gradient(135deg,#ff5aa7,#f13c87);
}

/* Animated premium ring around list avatars */
.dm-avatar-wrap{
  position:relative;
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  flex:0 0 64px;
}
.dm-avatar-wrap::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    #ff4f9f,
    #ff87bb,
    #8b5cf6,
    #ff4f9f
  );
  animation:dmAvatarRingSpin 4.5s linear infinite;
  z-index:0;
  opacity:.95;
}
.dm-avatar-wrap::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:50%;
  background:#fff;
  z-index:1;
}
.dm-avatar-wrap img{
  position:relative;
  z-index:2;
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  object-position:center 20%;
  border:2px solid #fff;
  box-shadow:0 3px 10px rgba(0,0,0,.09);
}
.dm-online-dot{
  z-index:4;
}
@keyframes dmAvatarRingSpin{
  to{transform:rotate(360deg)}
}

/* Chat screen profile image: perfectly round and visually centered */
.dm-chat-head{
  align-items:center;
}
.dm-chat-head img{
  width:78px;
  height:78px;
  min-width:78px;
  min-height:78px;
  border-radius:50%;
  object-fit:cover;
  object-position:center 18%;
  display:block;
  background:#f7edf3;
  border:4px solid #fff;
  box-shadow:
    0 0 0 2px #f2c5dc,
    0 7px 18px rgba(120,55,88,.14);
}

/* soft animated ring around chat image */
.dm-chat-head{
  position:relative;
}
.dm-chat-head::before{
  content:"";
  position:absolute;
  left:-3px;
  top:50%;
  width:84px;
  height:84px;
  border-radius:50%;
  transform:translateY(-50%);
  background:conic-gradient(#ff4f9f,#ff99c4,#8b5cf6,#ff4f9f);
  animation:dmChatRing 5s linear infinite;
  z-index:0;
}
.dm-chat-head img{
  position:relative;
  z-index:1;
}
.dm-chat-head > div{
  position:relative;
  z-index:1;
}
@keyframes dmChatRing{
  to{transform:translateY(-50%) rotate(360deg)}
}

/* keep action row balanced */
.dm-profile-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.dm-chat-btn{
  min-height:52px;
}

/* gentle attention pulse for profile ring */
.dm-profile-card:hover .dm-avatar-wrap{
  animation:dmAvatarLift .7s ease;
}
@keyframes dmAvatarLift{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

@media(max-width:390px){
  .dm-heart-btn{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
  }
  .dm-heart-btn::before{font-size:27px}
  .dm-avatar-wrap{
    width:60px;
    height:60px;
    flex-basis:60px;
  }
  .dm-avatar-wrap img{
    width:52px;
    height:52px;
  }
  .dm-chat-head img{
    width:72px;
    height:72px;
    min-width:72px;
    min-height:72px;
  }
  .dm-chat-head::before{
    width:78px;
    height:78px;
  }
}

@media (prefers-reduced-motion: reduce){
  .dm-avatar-wrap::before,
  .dm-chat-head::before{
    animation:none!important;
  }
}
