/* SM Shahid Shah — Prompt Tools luxury mobile app UI.
   Applies ONLY at <=720px to authenticated /app/ Prompt Tools.
   Desktop/laptop layout and all data-tool routing remain unchanged. */
@media screen and (max-width:720px) {
  .member-app #view-tools.sm-premium-prompts {
    padding:0 0 20px!important;max-width:100%!important;min-width:0!important;
    overflow-x:clip;
    --sm-vip-gold:#ba822e;
    --sm-vip-shadow:0 5px 17px rgba(83,51,18,.075);
  }
  .member-app #view-tools .sm-prompts-hero {
    position:relative!important;isolation:isolate!important;overflow:hidden!important;
    display:flex!important;align-items:center!important;
    min-height:0!important;padding:17px 16px 18px!important;margin:12px 0 11px!important;
    border:1px solid #966f3b!important;border-radius:19px!important;
    background:radial-gradient(ellipse at 98% 18%,rgba(235,182,103,.26),transparent 49%),
      linear-gradient(115deg,#241913,#3c2819 62%,#4f3219)!important;
    box-shadow:0 9px 23px rgba(66,41,15,.15)!important;
  }
  .member-app #view-tools .sm-prompts-hero::before{
    content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;
    opacity:.23!important;background:repeating-linear-gradient(90deg,transparent 0 27px,rgba(239,190,111,.20) 28px 29px),
      repeating-linear-gradient(0deg,transparent 0 27px,rgba(239,190,111,.13) 28px 29px)!important;
    -webkit-mask-image:none!important;mask-image:none!important;
  }
  .member-app #view-tools .sm-prompts-hero-copy {flex:1!important;max-width:100%!important;z-index:3!important;}
  .member-app #view-tools .sm-prompts-eyebrow {
    margin:0 0 7px!important;
    color:#efc789!important;font-size:8px!important;font-weight:900!important;
    letter-spacing:1.15px!important;line-height:1.35!important;
  }
  .member-app #view-tools .sm-prompts-hero h1{
    max-width:100%!important;font-size:clamp(24px,6.2vw,29px)!important;
    margin:0 0 6px!important;line-height:1.13!important;letter-spacing:-.9px!important;
    color:#fff9ef!important;font-weight:850!important;
  }
  .member-app #view-tools .sm-prompts-hero h1 em{
    color:#f5c978!important;background:linear-gradient(90deg,#ffe2a4,#dba04c)!important;
    -webkit-background-clip:text!important;background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
  }
  .member-app #view-tools .sm-prompts-hero p{
    display:none!important;
  }
  .member-app #view-tools .sm-prompts-hero .sm-prompts-mobile-description{
    display:block!important;
    max-width:81%!important;margin:0!important;color:#e8d5b9!important;
    font-size:10.7px!important;line-height:1.45!important;
  }
  .member-app #view-tools .sm-prompts-hero-visual{
    position:absolute!important;inset:0 0 0 auto!important;width:63%!important;
    opacity:.44!important;pointer-events:none!important;z-index:1!important;
    padding-right:0!important;
  }
  .member-app #view-tools .sm-prompts-chart{position:absolute!important;opacity:.8!important;}
  .member-app #view-tools .sm-prompts-ai-icon {
    width:55px!important;height:55px!important;right:12px!important;
    margin-left:auto!important;border-radius:14px!important;
    box-shadow:0 5px 20px #0004,inset 0 0 0 2px #ffe5a633!important;
    animation:none!important;transform:rotate(-8deg)!important;
    background:linear-gradient(135deg,#f6cf83,#bf822c 75%,#8e5d23)!important;
  }
  .member-app #view-tools .sm-prompts-ai-icon span {font-size:25px!important;letter-spacing:-1.2px!important;}
  .member-app #view-tools .sm-prompts-ai-icon i {display:none!important;}
  /* Four consistent, tappable tool cards. */
  .member-app #view-tools .sm-prompt-tool-tabs{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;padding:0!important;margin:0 0 12px!important;
    min-width:0!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  .member-app #view-tools .sm-prompt-tool-tab{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    justify-content:flex-start!important;gap:6px!important;
    width:100%!important;min-width:0!important;min-height:103px!important;
    padding:12px 11px!important;border-radius:16px!important;
    border:1px solid var(--line)!important;background:var(--surface)!important;
    box-shadow:var(--sm-vip-shadow)!important;
    text-align:left!important;transform:none!important;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,transform .16s ease!important;
  }
  .member-app #view-tools .sm-prompt-tool-tab::after{display:none!important;}
  .member-app #view-tools .sm-prompt-tool-tab:active{transform:scale(.98)!important;}
  .member-app #view-tools .sm-prompt-tool-tab.active{
    background:linear-gradient(135deg,#fff2d6,#f4d49b 88%,#ebc37f)!important;
    border:1px solid #dfb979!important;
    box-shadow:0 7px 18px rgba(155,96,22,.13)!important;
  }
  .member-app #view-tools .sm-prompt-tab-icon {
    display:grid!important;place-items:center!important;
    flex:0 0 31px!important;width:31px!important;height:31px!important;
    border-radius:10px!important;line-height:1!important;
    background:linear-gradient(135deg,#9b6926,#674016)!important;
    color:#ffe8b7!important;font-size:17px!important;
  }
  .member-app #view-tools .sm-prompt-tool-tab>span:last-child{
    display:grid!important;gap:3px!important;min-width:0!important;
  }
  .member-app #view-tools .sm-prompt-tool-tab strong{
    color:var(--ink)!important;font-size:11.3px!important;font-weight:850!important;
    line-height:1.24!important;letter-spacing:-.2px!important;
  }
  .member-app #view-tools .sm-prompt-tool-tab small {
    display:block!important;max-width:100%!important;
    font-size:9px!important;line-height:1.26!important;
    color:var(--muted)!important;
  }
  /* Benefits reduced to one slim, useful line; no repetitive marketing blocks. */
  .member-app #view-tools .sm-prompt-benefits{
    min-height:0!important;margin:0 0 11px!important;padding:10px 12px!important;
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    gap:6px 11px!important;border-radius:13px!important;
    border:1px solid var(--line)!important;
    background:var(--surface)!important;box-shadow:var(--sm-vip-shadow)!important;
  }
  .member-app #view-tools .sm-prompt-benefits>div {display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;}
  .member-app #view-tools .sm-prompt-benefit-main {
    padding:0!important;border:0!important;flex:0 0 auto!important;
  }
  .member-app #view-tools .sm-prompt-benefit-main>span {font-size:14px!important;}
  .member-app #view-tools .sm-prompt-benefit-main strong {
    font-size:10px!important;line-height:1.3!important;color:var(--gold)!important;
  }
  .member-app #view-tools .sm-prompt-benefits>div:nth-child(2) {display:none!important;}
  .member-app #view-tools .sm-prompt-benefits>div:nth-child(3) {display:none!important;}
  .member-app #view-tools .sm-prompt-benefits>div:nth-child(4)>span:last-child{
    font-size:9px!important;line-height:1.3!important;
    color:var(--muted)!important;
  }
  .member-app #view-tools .sm-prompt-benefit-check {
    flex:0 0 14px!important;width:14px!important;height:14px!important;font-size:9px!important;
  }
  .member-app #view-tools #toolModuleArea.sm-prompt-builder-host {
    margin:0!important;padding:0!important;
    background:transparent!important;border:0!important;
    width:100%!important;min-width:0!important;
  }
  .member-app #view-tools #toolModuleArea #toolModuleFrame {
    display:block!important;width:100%!important;max-width:100%!important;
    border:0!important;background:transparent!important;
    overflow:hidden!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tab{
    background:#292018!important;border-color:#5b4530!important;box-shadow:0 4px 14px #0003!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tab.active{
    background:linear-gradient(115deg,#48331d,#65451f)!important;border-color:#9b7139!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tab strong{color:#fff2df!important;}
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tab small{color:#d4bfa6!important;}
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-benefits{background:#2b2017!important;border-color:#5b4530!important;}
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-benefit-main strong{color:#efc783!important;}
}
@media screen and (max-width:365px) {
  .member-app #view-tools .sm-prompt-tool-tabs{gap:7px!important;}
  .member-app #view-tools .sm-prompt-tool-tab{padding:10px 9px!important;min-height:102px!important;}
  .member-app #view-tools .sm-prompt-tool-tab strong{font-size:10.7px!important;}
  .member-app #view-tools .sm-prompt-tool-tab small{font-size:8.6px!important;}
}
@media screen and (max-width:720px) and (prefers-reduced-motion:reduce){
  .member-app #view-tools .sm-prompt-tool-tab {transition:none!important;}
}
