/* vv-marketplace-mobile 20260920T1110CT — marketplace mobile 100X ADD-ONLY */
/* Thumb-friendly Join Pro / Place Pack / soft hub / RBAC hints. No React smash. */

@media (max-width: 767px) {
  /* Join Pro / consent / WhoAreYou CTAs */
  [role="dialog"] button,
  [data-vv-auth] button,
  [data-vv-otp] button,
  [class*="WhoAreYou"] button {
    min-height: 48px !important;
    min-width: 44px !important;
    font-size: 15px !important;
  }
  [role="dialog"] input,
  [data-vv-auth] input,
  [data-vv-otp] input {
    min-height: 48px !important;
    font-size: 16px !important; /* iOS zoom guard */
  }
  [role="dialog"] label[for],
  [data-vv-auth] label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Marketplace SKU / Place Pack CTAs */
  a[href*="place"],
  a[href*="checkout"],
  a[href*="join-pro"],
  button[data-sku],
  [data-vv-mp-sku] button,
  [data-vv-mp-sku] a {
    min-height: 48px !important;
  }
  /* Broaden common CTA classes on marketplace routes */
  body[data-vv-mp-mobile="1"] a.inline-flex,
  body[data-vv-mp-mobile="1"] button.rounded-xl,
  body[data-vv-mp-mobile="1"] a.rounded-xl {
    min-height: 44px;
  }

  /* Gold / license card host — readable on 390 */
  [data-vv-license-card="1"],
  [data-vv-license-wrap],
  .vrd-gold-card,
  .vv-dash-gold {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  [data-vv-license-host],
  [data-vv-joinpro-gold-host] {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Soft hub mobile — stack KPI cards, no horizontal crush */
  body.vv-soft-hub-gold .grid.grid-cols-1,
  #root .max-w-7xl {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  /* RBAC disabled hint pill */
  [data-vv-rbac-hint="1"] {
    display: block !important;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(212, 175, 55, 0.85);
  }

  /* Sticky marketplace CTA dock (tip-injected) */
  [data-vv-mp-cta-dock="1"] {
    position: fixed !important;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 2147482500;
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(10, 26, 23, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  [data-vv-mp-cta-dock="1"] a,
  [data-vv-mp-cta-dock="1"] button {
    flex: 1;
    min-height: 48px !important;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  [data-vv-mp-cta-primary="1"] {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #0A1A17 !important;
  }
  [data-vv-mp-cta-secondary="1"] {
    background: rgba(255,255,255,0.06);
    color: #D4AF37 !important;
    border: 1px solid rgba(212,175,55,0.45) !important;
  }
}

@media (min-width: 768px) {
  [data-vv-mp-cta-dock="1"] { display: none !important; }
}
